[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40629] branches/soc-2011-onion-uv-tools/ source/blender/editors/uvedit/uvedit_ops.c: hide selection from toolbar
Antony Riakiotakis
kalast at gmail.com
Tue Sep 27 20:53:03 CEST 2011
Revision: 40629
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40629
Author: psy-fi
Date: 2011-09-27 18:53:02 +0000 (Tue, 27 Sep 2011)
Log Message:
-----------
hide selection from toolbar
Modified Paths:
--------------
branches/soc-2011-onion-uv-tools/source/blender/editors/uvedit/uvedit_ops.c
Modified: branches/soc-2011-onion-uv-tools/source/blender/editors/uvedit/uvedit_ops.c
===================================================================
--- branches/soc-2011-onion-uv-tools/source/blender/editors/uvedit/uvedit_ops.c 2011-09-27 18:29:19 UTC (rev 40628)
+++ branches/soc-2011-onion-uv-tools/source/blender/editors/uvedit/uvedit_ops.c 2011-09-27 18:53:02 UTC (rev 40629)
@@ -2952,6 +2952,7 @@
static void UV_OT_stitch(wmOperatorType *ot)
{
+ PropertyRNA *prop;
static EnumPropertyItem mode[] = {
{VERT_STITCH, "VERT_STITCH", 0, "Vertex Stitch", ""},
{EDGE_STITCH, "EDGE_STITCH", 0, "Edge Stitch", ""},
@@ -2976,7 +2977,9 @@
RNA_def_enum(ot->srna, "mode", mode, VERT_STITCH, "Mode", "Vertex or edge stitching mode. In Edge stitching, both uv's must be stitchable to stitch");
RNA_def_float(ot->srna, "limit", 0.01f, 0.0f, FLT_MAX, "Limit", "Limit distance in normalized coordinates", 0.0, FLT_MAX);
RNA_def_int(ot->srna, "static_island", 0, 0, INT_MAX, "Static Island", "Island that stays in place when stitching islands", 0, INT_MAX);
- RNA_def_collection_runtime(ot->srna, "selection", &RNA_SelectedUvElement, "Selection", "");
+ prop = RNA_def_collection_runtime(ot->srna, "selection", &RNA_SelectedUvElement, "Selection", "");
+ /* Selection should not be editable or viewed in toolbar */
+ RNA_def_property_flag(prop, PROP_HIDDEN);
}
/* ******************** (de)select all operator **************** */
More information about the Bf-blender-cvs
mailing list