[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42326] branches/tile: Tile Branch:
Thomas Dinges
blender at dingto.org
Thu Dec 1 21:02:55 CET 2011
Revision: 42326
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42326
Author: dingto
Date: 2011-12-01 20:02:47 +0000 (Thu, 01 Dec 2011)
Log Message:
-----------
Tile Branch:
* Minor UI tweak to save some space in the node editor properties region.
* Rename RNA "opencl" to "use_opencl", to follow boolean rna-naming conventions.
Modified Paths:
--------------
branches/tile/release/scripts/startup/bl_ui/space_node.py
branches/tile/source/blender/makesrna/intern/rna_nodetree.c
Modified: branches/tile/release/scripts/startup/bl_ui/space_node.py
===================================================================
--- branches/tile/release/scripts/startup/bl_ui/space_node.py 2011-12-01 19:31:36 UTC (rev 42325)
+++ branches/tile/release/scripts/startup/bl_ui/space_node.py 2011-12-01 20:02:47 UTC (rev 42326)
@@ -208,10 +208,10 @@
snode = context.space_data
tree = snode.node_tree
- layout.prop(tree, "render_quality")
- layout.prop(tree, "edit_quality")
+ layout.prop(tree, "render_quality", text="Render")
+ layout.prop(tree, "edit_quality", text="Edit")
layout.prop(tree, "chunksize")
- layout.prop(tree, "opencl")
+ layout.prop(tree, "use_opencl")
if __name__ == "__main__": # only for live edit.
bpy.utils.register_module(__name__)
Modified: branches/tile/source/blender/makesrna/intern/rna_nodetree.c
===================================================================
--- branches/tile/source/blender/makesrna/intern/rna_nodetree.c 2011-12-01 19:31:36 UTC (rev 42325)
+++ branches/tile/source/blender/makesrna/intern/rna_nodetree.c 2011-12-01 20:02:47 UTC (rev 42326)
@@ -3486,7 +3486,7 @@
RNA_def_property_ui_text(prop, "Chunksize", "Max size of a chunk during calculation");
RNA_def_property_range(prop, 16, 512);
- prop= RNA_def_property(srna, "opencl", PROP_BOOLEAN, PROP_NONE);
+ prop= RNA_def_property(srna, "use_opencl", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flag", NTREE_COM_OPENCL);
RNA_def_property_ui_text(prop, "OpenCL", "Enable GPU calculations");
More information about the Bf-blender-cvs
mailing list