diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-06-19 16:06:34 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-06-19 16:06:34 +0400 |
commit | 0ecae611f993843140a347cd8c366cfe8fefe711 (patch) | |
tree | d1986ba71c37afdfea3ca2ce61a10bd8b67d1f40 /release | |
parent | 229b7639e72c5290b3be24747fafd14c7aeaf71b (diff) |
rna info module now prints out property names into the console when run directly
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/rna_info.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/release/scripts/modules/rna_info.py b/release/scripts/modules/rna_info.py index 0f6d60066a3..9e106597a01 100644 --- a/release/scripts/modules/rna_info.py +++ b/release/scripts/modules/rna_info.py @@ -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) |