update templates for registration changes
[blender.git] / release / scripts / templates / builtin_keyingset.py
index 799f305d8b4a0451a0e64fc717494f63de20aa98..0b808e9cd26cc93d61d0ae85d6249424149257a7 100644 (file)
@@ -25,5 +25,14 @@ class BUILTIN_KSI_hello(bpy.types.KeyingSetInfo):
 
         ks.paths.add(id_block, "show_x_ray", group_method='NONE')
 
-# manually register
-bpy.types.register(BUILTIN_KSI_hello)
+
+def register():
+    bpy.utils.register_class(BUILTIN_KSI_hello)
+
+
+def unregister():
+    bpy.utils.unregister_class(BUILTIN_KSI_hello)
+
+
+if __name__ == '__main__':
+    register()