rna info module now prints out property names into the console when run directly

This commit is contained in:
Campbell Barton 2010-06-19 12:06:34 +00:00
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)