Minor change to the custom_nodes.py template that has some consequences for addons...
authorLukas Toenne <lukas.toenne@googlemail.com>
Tue, 30 Jul 2013 08:30:15 +0000 (08:30 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Tue, 30 Jul 2013 08:30:15 +0000 (08:30 +0000)
The bpy_types classes cause issues when used in addons when loading on Blender startup (subclasses cannot be properly registered).

release/scripts/templates_py/custom_nodes.py

index d5bb71416c9fd00409908409a82bbef7d9bbe2be..5f002f3716176dcb355dbe532d67d5884ec9769d 100644 (file)
@@ -1,5 +1,5 @@
 import bpy
-from bpy_types import NodeTree, Node, NodeSocket
+from bpy.types import NodeTree, Node, NodeSocket
 
 # Implementation of custom nodes from Python