[Bf-committers] Some changes in 3D view header (and general RNA-generated UI)

Bastien Montagne montagne29 at wanadoo.fr
Sun May 12 11:27:12 CEST 2013


Hi Cody,

On 11/05/2013 21:31, CoDEmanX wrote:
> Hey Mont,
>
> good work on the UI stuff, this is always great for python scripters :)
>
>
> Two questions about the patch:
>
>> ** enum-operator-generated menus are now PULLDOWN in headers too.
> Does that mean the visual order is inversed?
Gah! I wanted to say MENU here, which is actually the id for dropdown 
lists, while PULLDOWN is actually the id for menus (yes, silly)! Anyway, 
this does not affects order, afaik both PULLDOWN and MENU UI items 
handle their ordering exactly the same way.
>> ** All bit-flag enums expanded in ROW buttons now have a handling
>> consistent with e.g. layers, or what we already have for transform
>> manipulators, i.e. clicking select only one element, shift-click to
>> select multiple ones.
> Sounds great, since we can't code such behavior in python as
> window.eventstate isn't exposed. But when does it apply? For all
> BoolVectorPropeperty's? Only if subtype='LAYER'? Maybe there's a need a
> layer bool vec prop (20 elems) which allows just a single bool / layer
> selected, in this case, another subtype with no shift-click would be
> required i guess?
No, it does not affect Boolean vectors, only Enums using bit-flags 
(ENUM_FLAG option).
> Kind regards,
> Cody
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list