forked from bartvdbraak/blender
Added missing sculpt/brush RNA properties.
Also a few more tweaks to CMake/gcc warnings.
This commit is contained in:
parent
2a976811a9
commit
0d05b2c767
@ -197,7 +197,7 @@ IF(UNIX)
|
|||||||
SET(PLATFORM_LINKFLAGS "-pthread")
|
SET(PLATFORM_LINKFLAGS "-pthread")
|
||||||
|
|
||||||
# Better warnings
|
# 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)
|
INCLUDE_DIRECTORIES(/usr/include /usr/local/include)
|
||||||
ENDIF(UNIX)
|
ENDIF(UNIX)
|
||||||
|
@ -137,12 +137,27 @@ void rna_def_brush(BlenderRNA *brna)
|
|||||||
prop= RNA_def_property(srna, "spacing_pressure", PROP_BOOLEAN, PROP_NONE);
|
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_boolean_sdna(prop, NULL, "flag", BRUSH_SPACING_PRESSURE);
|
||||||
RNA_def_property_ui_text(prop, "Spacing Pressure", "Enable tablet pressure sensitivity for spacing.");
|
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
|
/* not exposed in the interface yet
|
||||||
prop= RNA_def_property(srna, "fixed_tex", PROP_BOOLEAN, PROP_NONE);
|
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_boolean_sdna(prop, NULL, "flag", BRUSH_FIXED_TEX);
|
||||||
RNA_def_property_ui_text(prop, "Fixed Texture", "Keep texture origin in fixed position.");*/
|
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 */
|
/* texture */
|
||||||
rna_def_mtex_common(srna, "rna_Brush_mtex_begin", "rna_Brush_active_texture_get", "TextureSlot");
|
rna_def_mtex_common(srna, "rna_Brush_mtex_begin", "rna_Brush_active_texture_get", "TextureSlot");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user