diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-23 03:21:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-23 03:21:49 +0300 |
commit | e529d0d0ad0469d1f03941bf7f522e7b1ac25abf (patch) | |
tree | 6a37cb80b488fcd013132cd1fa4a8ae2aa10f941 /rigify/__init__.py | |
parent | 9d4e9bdc67128bd76b608e9b279e9e6f443a58f5 (diff) |
fix for rigify with data editing restriction, store runtime props in the window manager.
Diffstat (limited to 'rigify/__init__.py')
-rw-r--r-- | rigify/__init__.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/rigify/__init__.py b/rigify/__init__.py index 8565a67d..4a431e3a 100644 --- a/rigify/__init__.py +++ b/rigify/__init__.py @@ -125,9 +125,10 @@ def register(): bpy.types.PoseBone.rigify_type = bpy.props.StringProperty(name="Rigify Type", description="Rig type for this bone.") bpy.types.PoseBone.rigify_parameters = bpy.props.CollectionProperty(type=RigifyParameters) - bpy.types.Scene.rigify_collection = bpy.props.EnumProperty(items=col_enum_list, default="All", name="Rigify Active Collection", description="The selected rig collection") - bpy.types.Scene.rigify_types = bpy.props.CollectionProperty(type=RigifyName) - bpy.types.Scene.rigify_active_type = bpy.props.IntProperty(name="Rigify Active Type", description="The selected rig type.") + IDStore = bpy.types.WindowManager + IDStore.rigify_collection = bpy.props.EnumProperty(items=col_enum_list, default="All", name="Rigify Active Collection", description="The selected rig collection") + IDStore.rigify_types = bpy.props.CollectionProperty(type=RigifyName) + IDStore.rigify_active_type = bpy.props.IntProperty(name="Rigify Active Type", description="The selected rig type.") metarig_menu.register() @@ -136,9 +137,10 @@ def unregister(): del bpy.types.PoseBone.rigify_type del bpy.types.PoseBone.rigify_parameters - del bpy.types.Scene.rigify_collection - del bpy.types.Scene.rigify_types - del bpy.types.Scene.rigify_active_type + IDStore = bpy.types.WindowManager + del IDStore.rigify_collection + del IDStore.rigify_types + del IDStore.rigify_active_type metarig_menu.unregister() |