Revision: 56957
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56957
Author: nazgul
Date: 2013-05-22 05:41:39 +0000 (Wed, 22 May 2013)
Log Message:
-----------
Mark toggling and create missing and non-save properties for brush selection
Re-using this properties were rather confusing -- selecting mask brush once
lead to changes in behavior of other brushes hotkeys.
Modified Paths:
--------------
trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c
Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c
2013-05-21 23:11:25 UTC (rev 56956)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c
2013-05-22 05:41:39 UTC (rev 56957)
@@ -411,6 +411,7 @@
{OB_MODE_TEXTURE_PAINT, "TEXTURE_PAINT", ICON_TPAINT_HLT,
"Texture Paint", ""},
{0, NULL, 0, NULL, NULL}
};
+ PropertyRNA *prop;
/* identifiers */
ot->name = "Brush Select";
@@ -430,8 +431,10 @@
RNA_def_enum(ot->srna, "weight_paint_tool", brush_vertex_tool_items, 0,
"Weight Paint Tool", "");
RNA_def_enum(ot->srna, "texture_paint_tool", brush_image_tool_items, 0,
"Texture Paint Tool", "");
- RNA_def_boolean(ot->srna, "toggle", 0, "Toggle", "Toggle between two
brushes rather than cycling");
- RNA_def_boolean(ot->srna, "create_missing", 0, "Create Missing", "If
the requested brush type does not exist, create a new brush");
+ prop = RNA_def_boolean(ot->srna, "toggle", 0, "Toggle", "Toggle between
two brushes rather than cycling");
+ RNA_def_property_flag(prop, PROP_SKIP_SAVE);
+ prop = RNA_def_boolean(ot->srna, "create_missing", 0, "Create Missing",
"If the requested brush type does not exist, create a new brush");
+ RNA_def_property_flag(prop, PROP_SKIP_SAVE);
}
static wmKeyMapItem *keymap_brush_select(wmKeyMap *keymap, int paint_mode,
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs