forked from bartvdbraak/blender
rna info module now prints out property names into the console when run directly
This commit is contained in:
parent
229b7639e7
commit
0ecae611f9
@ -633,6 +633,8 @@ if __name__ == "__main__":
|
||||
for prop_id, prop in sorted(props):
|
||||
data += "%s.%s: %s %s\n" % (struct_id_str, prop.identifier, prop.type, prop.description)
|
||||
|
||||
|
||||
text = bpy.data.texts.new(name="api.py")
|
||||
text.from_string(data)
|
||||
if bpy.app.background:
|
||||
print(data)
|
||||
else:
|
||||
text = bpy.data.texts.new(name="api.py")
|
||||
text.from_string(data)
|
||||
|
Loading…
Reference in New Issue
Block a user