[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58736] trunk/blender/release/scripts/ templates_py/custom_nodes.py: Minor change to the custom_nodes. py template that has some consequences for addons: use bpy.types. * base classes instead of bpy_types.*

Lukas Toenne lukas.toenne at googlemail.com
Tue Jul 30 10:30:15 CEST 2013


Revision: 58736
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58736
Author:   lukastoenne
Date:     2013-07-30 08:30:15 +0000 (Tue, 30 Jul 2013)
Log Message:
-----------
Minor change to the custom_nodes.py template that has some consequences for addons: use bpy.types.* base classes instead of bpy_types.*

The bpy_types classes cause issues when used in addons when loading on Blender startup (subclasses cannot be properly registered).

Modified Paths:
--------------
    trunk/blender/release/scripts/templates_py/custom_nodes.py

Modified: trunk/blender/release/scripts/templates_py/custom_nodes.py
===================================================================
--- trunk/blender/release/scripts/templates_py/custom_nodes.py	2013-07-30 07:32:37 UTC (rev 58735)
+++ trunk/blender/release/scripts/templates_py/custom_nodes.py	2013-07-30 08:30:15 UTC (rev 58736)
@@ -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
 




More information about the Bf-blender-cvs mailing list