From 0d05b2c76750661124bfe80f9171a68ea10e9dfb Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Wed, 14 Jan 2009 18:48:16 +0000 Subject: [PATCH] Added missing sculpt/brush RNA properties. Also a few more tweaks to CMake/gcc warnings. --- CMakeLists.txt | 2 +- source/blender/makesrna/intern/rna_brush.c | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 299c31162b2..3518a7b0436 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -197,7 +197,7 @@ IF(UNIX) SET(PLATFORM_LINKFLAGS "-pthread") # Better warnings - SET(C_WARNINGS "-Wall -Wextra -Wno-char-subscripts -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Waggregate-return -Wnested-externs -Wredundant-decls -Wdeclaration-after-statement -Wno-unused-parameter") + SET(C_WARNINGS "-Wall -Wno-char-subscripts -Wpointer-arith -Wcast-align -Waggregate-return -Wnested-externs -Wdeclaration-after-statement") INCLUDE_DIRECTORIES(/usr/include /usr/local/include) ENDIF(UNIX) diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c index 6459cd8f5a1..5b112020dee 100644 --- a/source/blender/makesrna/intern/rna_brush.c +++ b/source/blender/makesrna/intern/rna_brush.c @@ -137,12 +137,27 @@ void rna_def_brush(BlenderRNA *brna) prop= RNA_def_property(srna, "spacing_pressure", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", BRUSH_SPACING_PRESSURE); RNA_def_property_ui_text(prop, "Spacing Pressure", "Enable tablet pressure sensitivity for spacing."); + + prop= RNA_def_property(srna, "rake", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flag", BRUSH_RAKE); + 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_ui_text(prop, "Anchored", "Keep the brush anchored to the initial location."); + + prop= RNA_def_property(srna, "flip_direction", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flag", BRUSH_DIR_IN); + RNA_def_property_ui_text(prop, "Flip Direction", "Move vertices in the opposite direction."); /* not exposed in the interface yet prop= RNA_def_property(srna, "fixed_tex", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", BRUSH_FIXED_TEX); RNA_def_property_ui_text(prop, "Fixed Texture", "Keep texture origin in fixed position.");*/ + prop= RNA_def_property(srna, "curve", PROP_POINTER, PROP_NONE); + RNA_def_property_ui_text(prop, "Curve", "Editable falloff curve."); + /* texture */ rna_def_mtex_common(srna, "rna_Brush_mtex_begin", "rna_Brush_active_texture_get", "TextureSlot");