[Bf-extensions-cvs] [731d775a] master: Fix T62976: Rigify itself and its generated scripts fail to load.

Alexander Gavrilov noreply at git.blender.org
Tue Mar 26 17:20:01 CET 2019


Commit: 731d775aba36108aa08dbcc24d41f25e2200ff85
Author: Alexander Gavrilov
Date:   Tue Mar 26 19:19:08 2019 +0300
Branches: master
https://developer.blender.org/rBA731d775aba36108aa08dbcc24d41f25e2200ff85

Fix T62976: Rigify itself and its generated scripts fail to load.

Panel identifier naming restrictions are now enforced more strictly.

===================================================================

M	rigify/rig_ui_template.py
M	rigify/rot_mode.py

===================================================================

diff --git a/rigify/rig_ui_template.py b/rigify/rig_ui_template.py
index 7265999b..87eef0d8 100644
--- a/rigify/rig_ui_template.py
+++ b/rigify/rig_ui_template.py
@@ -829,7 +829,7 @@ class RigUI(bpy.types.Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'UI'
     bl_label = "Rig Main Properties"
-    bl_idname = rig_id + "_PT_rig_ui"
+    bl_idname = "VIEW3D_PT_rig_ui_" + rig_id
     bl_category = 'View'
 
     @classmethod
@@ -873,7 +873,7 @@ class RigLayers(bpy.types.Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'UI'
     bl_label = "Rig Layers"
-    bl_idname = rig_id + "_PT_rig_layers"
+    bl_idname = "VIEW3D_PT_rig_layers_" + rig_id
     bl_category = 'View'
 
     @classmethod
diff --git a/rigify/rot_mode.py b/rigify/rot_mode.py
index 9abfecea..2b234335 100644
--- a/rigify/rot_mode.py
+++ b/rigify/rot_mode.py
@@ -221,7 +221,7 @@ class convert():
 convert = convert()
 
 
-class ToolsPanel(bpy.types.Panel):
+class VIEW3D_PT_rigify_rot_mode(bpy.types.Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'UI'
     bl_category = 'View'
@@ -309,7 +309,7 @@ class CONVERT_OT_quat2eu_all_actions(bpy.types.Operator):
 ### Registering ###
 
 classes = (
-    ToolsPanel,
+    VIEW3D_PT_rigify_rot_mode,
     CONVERT_OT_quat2eu_current_action,
     CONVERT_OT_quat2eu_all_actions,
 )



More information about the Bf-extensions-cvs mailing list