Revision: 18508
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18508
Author:   nicholasbishop
Date:     2009-01-14 19:48:16 +0100 (Wed, 14 Jan 2009)

Log Message:
-----------
Added missing sculpt/brush RNA properties.
Also a few more tweaks to CMake/gcc warnings.

Modified Paths:
--------------
    branches/blender2.5/blender/CMakeLists.txt
    branches/blender2.5/blender/source/blender/makesrna/intern/rna_brush.c

Modified: branches/blender2.5/blender/CMakeLists.txt
===================================================================
--- branches/blender2.5/blender/CMakeLists.txt  2009-01-14 18:03:47 UTC (rev 
18507)
+++ branches/blender2.5/blender/CMakeLists.txt  2009-01-14 18:48:16 UTC (rev 
18508)
@@ -197,7 +197,7 @@
   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)

Modified: branches/blender2.5/blender/source/blender/makesrna/intern/rna_brush.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_brush.c      
2009-01-14 18:03:47 UTC (rev 18507)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_brush.c      
2009-01-14 18:48:16 UTC (rev 18508)
@@ -137,12 +137,27 @@
        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");
 


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to