Brushstroke Tools: Initial Version #328

Merged
Simon Thommes merged 229 commits from SimonThommes/blender-studio-tools:brushstroke_tools-initial-version into main 2024-11-06 15:03:47 +01:00
5 changed files with 5 additions and 5 deletions
Showing only changes of commit f8288fb47e - Show all commits

View File

@ -7,5 +7,5 @@ def register():
m.register() m.register()
def unregister(): def unregister():
for m in modules: for m in reversed(modules):
SimonThommes marked this conversation as resolved Outdated

Generally it's recommended to unregister in reverse registration order: for m in reversed(modules):

Generally it's recommended to unregister in reverse registration order: `for m in reversed(modules):`
m.unregister() m.unregister()

View File

@ -93,6 +93,6 @@ def register():
bpy.utils.register_tool(BrushstrokesCurves, after={"builtin.draw"}, group=True) bpy.utils.register_tool(BrushstrokesCurves, after={"builtin.draw"}, group=True)
def unregister(): def unregister():
for c in classes: for c in reversed(classes):
bpy.utils.unregister_class(c) bpy.utils.unregister_class(c)
bpy.utils.unregister_tool(BrushstrokesCurves) bpy.utils.unregister_tool(BrushstrokesCurves)

View File

@ -392,5 +392,5 @@ def register():
bpy.utils.register_class(c) bpy.utils.register_class(c)
def unregister(): def unregister():
for c in classes: for c in reversed(classes):
bpy.utils.unregister_class(c) bpy.utils.unregister_class(c)

View File

@ -171,7 +171,7 @@ def register():
bpy.app.handlers.depsgraph_update_post.append(find_context_brushstrokes) bpy.app.handlers.depsgraph_update_post.append(find_context_brushstrokes)
def unregister(): def unregister():
for c in classes: for c in reversed(classes):
bpy.utils.unregister_class(c) bpy.utils.unregister_class(c)
del bpy.types.Scene.BSBST_settings del bpy.types.Scene.BSBST_settings
del bpy.types.Object.modifier_info del bpy.types.Object.modifier_info

View File

@ -197,5 +197,5 @@ def register():
bpy.utils.register_class(c) bpy.utils.register_class(c)
def unregister(): def unregister():
for c in classes: for c in reversed(classes):
bpy.utils.unregister_class(c) bpy.utils.unregister_class(c)