[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4488] trunk/py/scripts/addons/rigify/ ui.py: Rigify bugfix: dev tools panel was displayed regardless of mode.
Nathan Vegdahl
cessen at cessen.com
Wed Apr 24 02:11:51 CEST 2013
Revision: 4488
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4488
Author: cessen
Date: 2013-04-24 00:11:45 +0000 (Wed, 24 Apr 2013)
Log Message:
-----------
Rigify bugfix: dev tools panel was displayed regardless of mode.
Thanks to Sanc Tuary for the bug report! Bug #35040
Modified Paths:
--------------
trunk/py/scripts/addons/rigify/ui.py
Modified: trunk/py/scripts/addons/rigify/ui.py
===================================================================
--- trunk/py/scripts/addons/rigify/ui.py 2013-04-21 13:58:10 UTC (rev 4487)
+++ trunk/py/scripts/addons/rigify/ui.py 2013-04-24 00:11:45 UTC (rev 4488)
@@ -202,6 +202,10 @@
bl_space_type = 'VIEW_3D'
bl_region_type = 'TOOLS'
+ @classmethod
+ def poll(cls, context):
+ return context.mode == 'EDIT_ARMATURE' or context.mode == 'EDIT_MESH'
+
def draw(self, context):
obj = context.active_object
if obj != None:
More information about the Bf-extensions-cvs
mailing list