[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29565] trunk/blender/release/scripts/ modules/rna_info.py: rna info module now prints out property names into the console when run directly
Campbell Barton
ideasman42 at gmail.com
Sat Jun 19 14:06:34 CEST 2010
Revision: 29565
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29565
Author: campbellbarton
Date: 2010-06-19 14:06:34 +0200 (Sat, 19 Jun 2010)
Log Message:
-----------
rna info module now prints out property names into the console when run directly
Modified Paths:
--------------
trunk/blender/release/scripts/modules/rna_info.py
Modified: trunk/blender/release/scripts/modules/rna_info.py
===================================================================
--- trunk/blender/release/scripts/modules/rna_info.py 2010-06-19 11:30:47 UTC (rev 29564)
+++ trunk/blender/release/scripts/modules/rna_info.py 2010-06-19 12:06:34 UTC (rev 29565)
@@ -633,6 +633,8 @@
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)
More information about the Bf-blender-cvs
mailing list