Added missing sculpt/brush RNA properties.
authorNicholas Bishop <nicholasbishop@gmail.com>
Wed, 14 Jan 2009 18:48:16 +0000 (18:48 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Wed, 14 Jan 2009 18:48:16 +0000 (18:48 +0000)
Also a few more tweaks to CMake/gcc warnings.

CMakeLists.txt
source/blender/makesrna/intern/rna_brush.c

index 299c31162b2f8ed03b5a8b30f9b699a3a390b9c3..3518a7b0436c11ed2d41f547d747fc3d2c6e334b 100644 (file)
@@ -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)
index 6459cd8f5a18bc69eb2923d20071b68712b4f9da..5b112020dee0e5f988963a5f0600645c27a2d414 100644 (file)
@@ -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");