[Blender_Kitsu] Add Operators to cleanup Animation Files #38
@ -257,7 +257,6 @@ class KITSU_OT_anim_enforce_naming_convention(bpy.types.Operator):
|
|||||||
remove_str: bpy.props.StringProperty(name="Find and Replace", default="",)
|
remove_str: bpy.props.StringProperty(name="Find and Replace", default="",)
|
||||||
rename_scene: bpy.props.BoolProperty(name="Rename Scene", default=True)
|
rename_scene: bpy.props.BoolProperty(name="Rename Scene", default=True)
|
||||||
rename_output_col: bpy.props.BoolProperty(name="Rename Output Collection", default=True)
|
rename_output_col: bpy.props.BoolProperty(name="Rename Output Collection", default=True)
|
||||||
rename_actions: bpy.props.BoolProperty(name="Rename Actions", default=True)
|
|
||||||
find_replace: bpy.props.BoolProperty(name="Find and Replace", default=False)
|
find_replace: bpy.props.BoolProperty(name="Find and Replace", default=False)
|
||||||
|
|
||||||
|
|
||||||
@ -319,9 +318,6 @@ class KITSU_OT_anim_enforce_naming_convention(bpy.types.Operator):
|
|||||||
if self.rename_scene:
|
if self.rename_scene:
|
||||||
context.scene.name = f"{shot_base_name}.anim"
|
context.scene.name = f"{shot_base_name}.anim"
|
||||||
|
|
||||||
# Rename Actions
|
|
||||||
if self.rename_actions:
|
|
||||||
bpy.ops.kitsu.anim_check_action_names()
|
|
||||||
self.report(
|
self.report(
|
||||||
{"INFO"},
|
{"INFO"},
|
||||||
f"Naming Conventions Enforced",
|
f"Naming Conventions Enforced",
|
||||||
|
Loading…
Reference in New Issue
Block a user