From 79be3983db579f175e41ddabf0a5223441edbdfc Mon Sep 17 00:00:00 2001 From: Blazer Date: Sat, 28 Dec 2024 04:05:44 -0600 Subject: [PATCH] Remove dsplvars --- __init__.py | 12 +----------- gui.py | 2 +- operators.py | 2 +- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/__init__.py b/__init__.py index 979a382..28b16ab 100644 --- a/__init__.py +++ b/__init__.py @@ -30,23 +30,13 @@ class dsplObj(bpy.types.PropertyGroup): # , update = anim_layers.layer_name_update -class dsplVars(bpy.types.PropertyGroup): - pose_index: bpy.props.IntProperty( - name="Pose Index", description="", override={'LIBRARY_OVERRIDABLE'}) - pose_new_name: bpy.props.StringProperty( - name="Pose Name", description="New name for pose", - default="Pose", override={'LIBRARY_OVERRIDABLE'}) - numero: bpy.props.IntProperty( - name='Numero', default=666, override={'LIBRARY_OVERRIDABLE'}) - - 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, dsplVars, dsplSettings) +classes = (dsplObj, dsplSettings) def register(): diff --git a/gui.py b/gui.py index 62f3c30..7ed96fe 100644 --- a/gui.py +++ b/gui.py @@ -157,7 +157,7 @@ class OBJECT_MT_AddPoseMenu(bpy.types.Menu): dspl_add_menu_layout = self.layout dspl_add_menu_layout.operator( - "dspl.add_pose", icon='ADD', text="Add New Pose").posename = arm_object.dsplvars.pose_new_name + "dspl.add_pose", icon='ADD', text="Add New Pose") if len(action_object.pose_markers): dspl_add_menu_layout.menu( "OBJECT_MT_ReplacePoseMenu", text="Replace Existing Pose", icon="DECORATE_OVERRIDE") diff --git a/operators.py b/operators.py index bb7aca5..f09a557 100644 --- a/operators.py +++ b/operators.py @@ -47,7 +47,7 @@ class DSPL_OT_AddPose(bpy.types.Operator): bl_description = "Add Pose" bl_options = {'REGISTER', 'UNDO'} - posename: bpy.props.StringProperty() + posename: bpy.props.StringProperty(default="Pose") replace: bpy.props.BoolProperty(name="Replace", description="Replace existing pose", default=False, options={'SKIP_SAVE'}) def execute(self, context):