Use Object.pose_library instead of Object.dspl.pose_library
This commit is contained in:
29
__init__.py
29
__init__.py
@ -22,36 +22,23 @@ if _need_reload:
|
||||
operators = importlib.reload(operators)
|
||||
|
||||
|
||||
class dsplObj(bpy.types.PropertyGroup):
|
||||
pose_library: bpy.props.PointerProperty(
|
||||
name="Active Pose Library", description="",
|
||||
override={'LIBRARY_OVERRIDABLE'}, type=bpy.types.Action)
|
||||
# update = common.poselib_update)
|
||||
# , update = anim_layers.layer_name_update
|
||||
|
||||
|
||||
class dsplSettings(bpy.types.PropertyGroup):
|
||||
new_menu: bpy.props.BoolProperty(
|
||||
name="New Menu", description="Toggle New Menu", default=False)
|
||||
edit_mode: bpy.props.BoolProperty(
|
||||
name="Edit Mode", description="Toggle Edit Mode", default=False)
|
||||
|
||||
classes = (dsplObj, dsplSettings)
|
||||
classes = dsplSettings
|
||||
|
||||
|
||||
def register():
|
||||
from bpy.utils import register_class
|
||||
for cls in classes:
|
||||
register_class(cls)
|
||||
register_class(dsplSettings)
|
||||
|
||||
# bpy.types.Armature.pose_library = bpy.props.PointerProperty(
|
||||
# type=dsplObj, override={'LIBRARY_OVERRIDABLE'})
|
||||
bpy.types.Object.pose_library = bpy.props.PointerProperty(
|
||||
name="Active Pose Library", description="",
|
||||
type=bpy.types.Action, override={'LIBRARY_OVERRIDABLE'})
|
||||
|
||||
# bpy.types.Object.pose_library = bpy.props.PointerProperty(
|
||||
# type=bpy.types.Action, options={'LIBRARY_EDITABLE'}, override={'LIBRARY_OVERRIDABLE'})
|
||||
|
||||
bpy.types.Object.dspl = bpy.props.PointerProperty(
|
||||
type=dsplObj, override={'LIBRARY_OVERRIDABLE'})
|
||||
bpy.types.Scene.dsplSettings = bpy.props.PointerProperty(
|
||||
type=dsplSettings, override={'LIBRARY_OVERRIDABLE'})
|
||||
|
||||
@ -59,12 +46,10 @@ def register():
|
||||
operators.register()
|
||||
keymaps.register()
|
||||
|
||||
def unregister() -> None:
|
||||
def unregister():
|
||||
from bpy.utils import unregister_class
|
||||
for cls in classes:
|
||||
unregister_class(cls)
|
||||
unregister_class(dsplSettings)
|
||||
|
||||
del bpy.types.Object.dspl
|
||||
del bpy.types.Scene.dsplSettings
|
||||
|
||||
keymaps.unregister()
|
||||
|
Reference in New Issue
Block a user