Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2009-01-15 08:09:33 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2009-01-15 08:09:33 +0300
commit4c17156c9eb37cee7b6b96b8ef58e34e7ad281f3 (patch)
treed41c9d64bb0d06e2899e52d4e14d734a9cb64c1c /source/blender/makesrna
parent52135dd4fac718b31b7653e42a7e4b332b2814f3 (diff)
Brought back anchored mode for sculpt brushes.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_brush.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c
index 5b112020dee..15136daaff5 100644
--- a/source/blender/makesrna/intern/rna_brush.c
+++ b/source/blender/makesrna/intern/rna_brush.c
@@ -143,7 +143,7 @@ void rna_def_brush(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Rake", "Rotate the brush texture to match the stroke direction.");
prop= RNA_def_property(srna, "anchored", PROP_BOOLEAN, PROP_NONE);
- RNA_def_property_boolean_sdna(prop, NULL, "flag", BRUSH_RAKE);
+ RNA_def_property_boolean_sdna(prop, NULL, "flag", BRUSH_ANCHORED);
RNA_def_property_ui_text(prop, "Anchored", "Keep the brush anchored to the initial location.");
prop= RNA_def_property(srna, "flip_direction", PROP_BOOLEAN, PROP_NONE);
@@ -182,7 +182,8 @@ void rna_def_brush(BlenderRNA *brna)
/* A brush stroke is a list of changes to the brush that
* can occur during a stroke
*
- * o 3D location of the brush (stored as collection due to symmetry)
+ * o 3D location of the brush
+ * o 2D mouse location
* o Tablet pressure
* o Direction flip
* o Tool switch
@@ -201,6 +202,11 @@ static void rna_def_operator_stroke_element(BlenderRNA *brna)
RNA_def_property_array(prop, 3);
RNA_def_property_ui_text(prop, "Location", "");
+ prop= RNA_def_property(srna, "mouse", PROP_INT, PROP_VECTOR);
+ RNA_def_property_flag(prop, PROP_IDPROPERTY);
+ RNA_def_property_array(prop, 2);
+ RNA_def_property_ui_text(prop, "Mouse", "");
+
/*prop= RNA_def_property(srna, "pressure", PROP_FLOAT, PROP_NONE);
RNA_def_property_flag(prop, PROP_IDPROPERTY);
RNA_def_property_range(prop, 0, 1);