Create a Property on the scene to handle the use_pick_bone
This commit is contained in:
parent
f4f8ee1613
commit
30064faf3d
@ -54,6 +54,10 @@ class RP_PG_collection_ui_settings(bpy.types.PropertyGroup):
|
||||
link_shape : BoolProperty(default=False)
|
||||
|
||||
|
||||
class RP_PG_scene_ui_settings(bpy.types.PropertyGroup):
|
||||
use_pick_bone : BoolProperty(default=False)
|
||||
|
||||
|
||||
class RP_OT_operator_selector(bpy.types.Operator):
|
||||
bl_label = "Select function"
|
||||
bl_idname = "rigpicker.operator_selector"
|
||||
@ -78,6 +82,7 @@ classes = (
|
||||
RP_PG_picker_source,
|
||||
RP_PG_object_ui_settings,
|
||||
RP_PG_collection_ui_settings,
|
||||
RP_PG_scene_ui_settings,
|
||||
RP_PG_armature_ui_settings,
|
||||
RP_OT_operator_selector,
|
||||
)
|
||||
@ -89,8 +94,10 @@ def register():
|
||||
bpy.types.Armature.rig_picker = bpy.props.PointerProperty(type=RP_PG_armature_ui_settings)
|
||||
bpy.types.Object.rig_picker = bpy.props.PointerProperty(type=RP_PG_object_ui_settings)
|
||||
bpy.types.Collection.rig_picker = bpy.props.PointerProperty(type=RP_PG_collection_ui_settings)
|
||||
bpy.types.Scene.rig_picker = bpy.props.PointerProperty(type=RP_PG_scene_ui_settings)
|
||||
|
||||
def unregister():
|
||||
del bpy.types.Scene.rig_picker
|
||||
del bpy.types.Collection.rig_picker
|
||||
del bpy.types.Object.rig_picker
|
||||
del bpy.types.Armature.rig_picker
|
||||
|
Loading…
x
Reference in New Issue
Block a user