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