own mistake, __rna__ wasnt causing circular references. python can handle this. changing broke python operators like the pyConsole.

This commit is contained in:
2009-08-16 12:29:46 +00:00
parent 59c6a81507
commit d800426c57
2 changed files with 23 additions and 12 deletions

View File

@@ -313,9 +313,9 @@ def rna2epy(target_path):
structs = []
for rna_type_name in dir(bpy.types):
rna_type = getattr(bpy.types, rna_type_name)
if hasattr(rna_type, '__get_rna'):
if hasattr(rna_type, '__rna__'):
#if not rna_type_name.startswith('__'):
rna_struct = rna_type.__get_rna()
rna_struct = rna_type.__rna__
identifier = rna_struct.identifier
structs.append( (base_id(rna_struct), identifier, rna_struct) )