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>2012-05-15 08:44:13 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-05-15 08:44:13 +0400
commit028e21adb342b9351f69fc11a33817db6b3ed964 (patch)
tree5562538588826cea1eeab7121e41e6a1adbbec9d /source/blender/makesrna
parent232980eef01a0a6d5ef5b80ad9f9dfbc6ec584a0 (diff)
Code cleanups for sculpt-related code.
* Renamed flip_coord as flip_v3_v3 * Added flip_v3 for same input/output * Moved special case for grab brush's normal into calc_area_normal() * Renamed 'fixed' texture mode as 'view plane', mirrors Brush.sculpt_plane terminology
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_brush.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c
index 893dd7a9707..e585e58f982 100644
--- a/source/blender/makesrna/intern/rna_brush.c
+++ b/source/blender/makesrna/intern/rna_brush.c
@@ -164,7 +164,7 @@ static int rna_SculptCapabilities_has_plane_offset_get(PointerRNA *ptr)
static int rna_SculptCapabilities_has_random_texture_angle_get(PointerRNA *ptr)
{
Brush *br = (Brush *)ptr->data;
- return ((br->mtex.brush_map_mode == MTEX_MAP_MODE_FIXED) &&
+ return ((br->mtex.brush_map_mode == MTEX_MAP_MODE_VIEW) &&
!(br->flag & BRUSH_ANCHORED) &&
!ELEM4(br->sculpt_tool,
SCULPT_TOOL_GRAB, SCULPT_TOOL_ROTATE,
@@ -393,7 +393,7 @@ static void rna_def_brush_texture_slot(BlenderRNA *brna)
PropertyRNA *prop;
static EnumPropertyItem prop_map_mode_items[] = {
- {MTEX_MAP_MODE_FIXED, "FIXED", 0, "Fixed", ""},
+ {MTEX_MAP_MODE_VIEW, "VIEW_PLANE", 0, "View Plane", ""},
{MTEX_MAP_MODE_TILED, "TILED", 0, "Tiled", ""},
{MTEX_MAP_MODE_3D, "3D", 0, "3D", ""},
{0, NULL, 0, NULL, NULL}