diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-10-31 16:31:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-10-31 16:31:23 +0300 |
commit | ea265fc69702566a846be3005d9fd814a10d7d54 (patch) | |
tree | 011f35edde76ca7519c6e4bfc9acb01c0d39774e /source/blender/python/rna_dump.py | |
parent | 85eb9d6a2f0a0d94f795fc5264670e85ad56992f (diff) |
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"
Diffstat (limited to 'source/blender/python/rna_dump.py')
-rw-r--r-- | source/blender/python/rna_dump.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/rna_dump.py b/source/blender/python/rna_dump.py index 66fb76c35aa..7dde4007f66 100644 --- a/source/blender/python/rna_dump.py +++ b/source/blender/python/rna_dump.py @@ -123,10 +123,10 @@ seek(bpy.data, 'bpy.data', 0) ''' for d in dir(bpy.types): t = getattr(bpy.types, d) - try: r = t.__rna__ + try: r = t.bl_rna except: r = None if r: - seek(r, 'bpy.types.' + d + '.__rna__', 0) + seek(r, 'bpy.types.' + d + '.bl_rna', 0) ''' #print dir(bpy) |