Brushstroke Tools: Initial Version #328
@ -7,5 +7,5 @@ def register():
|
|||||||
m.register()
|
m.register()
|
||||||
|
|
||||||
def unregister():
|
def unregister():
|
||||||
for m in modules:
|
for m in reversed(modules):
|
||||||
m.unregister()
|
m.unregister()
|
@ -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)
|
@ -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)
|
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user