update templates for registration changes
[blender.git] / release / scripts / templates / panel_simple.py
index 160bd1ef0bf228ffacda7b8d8e5791eb6b48a47c..ddbd4eb7aa489465bda1773e855c2bfaa2e9e3d6 100644 (file)
@@ -19,3 +19,15 @@ class OBJECT_PT_hello(bpy.types.Panel):
         row.label(text="Active object is: " + obj.name)
         row = layout.row()
         row.prop(obj, "name")
+
+
+def register():
+    bpy.utils.register_class(OBJECT_PT_hello)
+
+
+def unregister():
+    bpy.utils.unregister_class(OBJECT_PT_hello)    
+
+
+if __name__ == "__main__":
+    register()