change blender python interface for classes not to ise __idname__ rather bl_idname since __somename__ is for pythons internal use.

replacements...
"__idname__" -> "bl_idname"
"__props__" -> "bl_props"
"__label__" -> "bl_label"
"__register__" -> "bl_register"
"__undo__" -> "bl_undo"
"__space_type__" -> "bl_space_type"
"__default_closed__" -> "bl_default_closed"
"__region_type__" -> "bl_region_type"
"__context__" -> "bl_context"
"__show_header__" -> "bl_show_header"
"__URL__" -> "_url"
This commit is contained in:
2009-10-31 13:31:23 +00:00
parent 85eb9d6a2f
commit ea265fc697
61 changed files with 755 additions and 753 deletions

View File

@@ -2,7 +2,7 @@
import bpy
class NODE_HT_header(bpy.types.Header):
__space_type__ = 'NODE_EDITOR'
bl_space_type = 'NODE_EDITOR'
def draw(self, context):
layout = self.layout
@@ -48,7 +48,7 @@ class NODE_HT_header(bpy.types.Header):
layout.itemR(snode, "backdrop")
class NODE_MT_view(bpy.types.Menu):
__label__ = "View"
bl_label = "View"
def draw(self, context):
layout = self.layout
@@ -65,7 +65,7 @@ class NODE_MT_view(bpy.types.Menu):
layout.itemO("screen.screen_full_area")
class NODE_MT_select(bpy.types.Menu):
__label__ = "Select"
bl_label = "Select"
def draw(self, context):
layout = self.layout
@@ -78,7 +78,7 @@ class NODE_MT_select(bpy.types.Menu):
layout.itemO("node.select_linked_to")
class NODE_MT_node(bpy.types.Menu):
__label__ = "Node"
bl_label = "Node"
def draw(self, context):
layout = self.layout