change python scripts so modules which register with blender have a register() function rather then making import automatically run the register functions (generally considered bad practice by python people)

This commit is contained in:
2010-02-14 11:21:21 +00:00
parent b02f78ed02
commit 39c04315e2
76 changed files with 1310 additions and 592 deletions

View File

@@ -157,8 +157,19 @@ class DATA_PT_motion_paths(MotionPathButtonsPanel):
col.operator("pose.paths_clear", text="Clear Paths")
classes = [
OBJECT_PT_motion_paths,
DATA_PT_motion_paths]
#bpy.types.register(OBJECT_PT_onion_skinning)
#bpy.types.register(DATA_PT_onion_skinning)
bpy.types.register(OBJECT_PT_motion_paths)
bpy.types.register(DATA_PT_motion_paths)
# OBJECT_PT_onion_skinning
# DATA_PT_onion_skinning
def register():
register = bpy.types.register
for cls in classes:
register(cls)
def unregister():
unregister = bpy.types.unregister
for cls in classes:
unregister(cls)