[Bf-committers] UI/RNA question

Nicholas Bishop nicholasbishop at gmail.com
Thu Feb 16 18:46:52 CET 2012


I was looking today at updating the menus in sculpt/paint modes,
currently they are incomplete.

In sculpt especially right now, the toolbar UI has a lot of code like
this: "if tool in {'CLAY', 'FLATTEN', 'FILL', ...}". I'd rather not
duplicate such code for menus. One option is to add more functions to
properties_paint_common.py, but I was wondering if it would be better
to make this information available through RNA? E.g. add read-only
boolean properties like "has_direction", "has_stroke_method", etc,
with a get function to check current tool and such.

Would appreciate guidance as to whether that's appropriate RNA usage,
or other options.

-Nicholas


More information about the Bf-committers mailing list