[Bf-committers] Properties header to new RNA-based layout

Thomas Dinges blender at dingto.org
Wed Jun 19 18:05:25 CEST 2013


Hi,
I like this, this looks good to me. :)

Just 1 suggestion:
row = layout.row(align=False)

If you do not need alignment, no need to pass over align=False.

Best regards,
Thomas

Am 19.06.2013 17:57, schrieb Bastien Montagne:
> Hi devs,
>
> Here is another patch (http://www.pasteall.org/43304/diff), this time
> tackling the "context" buttons in Properties header, which are still
> using "ugly" old UI code.
>
> It removes buttons_header.c file, adds a (small) space_properties.py
> one, with a PROPERTIES_HT_header class, which simply uses the RNA enum
> to draw the context buttons. It also fixes that enum, btw, it always
> featured all contexts, which means you could (try to!) set through RNA
> invalid contexts...
>
> As usual, other devs' review and comments are much welcomed!
>
> Best regards,
> Bastien
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers


-- 
Thomas Dinges
Blender Developer, Artist and Musician

www.dingto.org



More information about the Bf-committers mailing list