Page MenuHome

UI: Allow menus to only be extended by add-ons if needed
AbandonedPublic

Authored by Aaron Carlisle (Blendify) on Feb 18 2017, 4:00 PM.

Diff Detail

Event Timeline

Aaron Carlisle (Blendify) retitled this revision from to UI: Allow menus to only be extended by add-ons if needed.
Aaron Carlisle (Blendify) updated this object.
Aaron Carlisle (Blendify) set the repository for this revision to rB Blender.
Aaron Carlisle (Blendify) updated this object.

hi, after discussion in irc it would be good to have the same behavior in the Armature menu also as it currently holds only 1 Item.
When users enable Rigify, the menu will appear just as it does now.
+1

I see the point of the feature, but not a big fan of how it’s implemented here… Would rather avoid having those if... else... blocks everywhere in our UI py code, it’s verbose enough already.

Think this logic should be implemented inside the layout.menu itself.

Also, maybe @Campbell Barton (campbellbarton) wants to have a look at this?

Bastien Montagne (mont29) requested changes to this revision.Mar 3 2017, 11:02 AM
Bastien Montagne (mont29) edited edge metadata.
This revision now requires changes to proceed.Mar 3 2017, 11:02 AM

hi, for consistency with the current armature menu only the changes to space_view3d.py are needed.