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-14 18:29:29 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2009-01-14 18:29:29 +0300
commit3e756ca0a616a467d64521d7c82bb8229a38447c (patch)
tree576730aeaa3358d555c257c3517494e0ecd6be19 /source/blender/makesrna
parent126b9ca1a6a3dd00b5340bee02fec491310c5f67 (diff)
Moved some more sculpt data into operator properties, also the test brush is now properly created so you can edit its state in the RNA viewer. Added an RNA property for the brush sculpt tool as well.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_brush.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c
index 35622c0a6da..6459cd8f5a1 100644
--- a/source/blender/makesrna/intern/rna_brush.c
+++ b/source/blender/makesrna/intern/rna_brush.c
@@ -62,6 +62,15 @@ void rna_def_brush(BlenderRNA *brna)
{BRUSH_BLEND_ERASE_ALPHA, "ERASE_ALPHA", "Erase Alpha", "Erase alpha while painting."},
{BRUSH_BLEND_ADD_ALPHA, "ADD_ALPHA", "Add Alpha", "Add alpha while painting."},
{0, NULL, NULL, NULL}};
+ static EnumPropertyItem prop_sculpt_tool_items[] = {
+ {SCULPT_TOOL_DRAW, "DRAW", "Draw", ""},
+ {SCULPT_TOOL_SMOOTH, "SMOOTH", "Smooth", ""},
+ {SCULPT_TOOL_PINCH, "PINCH", "Pinch", ""},
+ {SCULPT_TOOL_INFLATE, "INFLATE", "Inflate", ""},
+ {SCULPT_TOOL_GRAB, "GRAB", "Grab", ""},
+ {SCULPT_TOOL_LAYER, "LAYER", "Layer", ""},
+ {SCULPT_TOOL_FLATTEN, "FLATTEN", "Flatten", ""},
+ {0, NULL, NULL, NULL}};
srna= RNA_def_struct(brna, "Brush", "ID");
RNA_def_struct_ui_text(srna, "Brush", "Brush datablock for storing brush settings for painting and sculpting.");
@@ -70,6 +79,10 @@ void rna_def_brush(BlenderRNA *brna)
prop= RNA_def_property(srna, "blend", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_items(prop, prop_blend_items);
RNA_def_property_ui_text(prop, "Blending mode", "Brush blending mode.");
+
+ prop= RNA_def_property(srna, "sculpt_tool", PROP_ENUM, PROP_NONE);
+ RNA_def_property_enum_items(prop, prop_sculpt_tool_items);
+ RNA_def_property_ui_text(prop, "Sculpt Tool", "");
/* number values */
prop= RNA_def_property(srna, "size", PROP_INT, PROP_NONE);