Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 511 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| /** | /** | ||||
| * Test whether the #StrokeCache.sculpt_normal needs update in #do_brush_action | * Test whether the #StrokeCache.sculpt_normal needs update in #do_brush_action | ||||
| */ | */ | ||||
| static int sculpt_brush_needs_normal(const SculptSession *ss, const Brush *brush) | static int sculpt_brush_needs_normal(const SculptSession *ss, const Brush *brush) | ||||
| { | { | ||||
| return ((SCULPT_TOOL_HAS_NORMAL_WEIGHT(brush->sculpt_tool) && | return ((SCULPT_TOOL_HAS_NORMAL_WEIGHT(brush->sculpt_tool) && | ||||
| (ss->cache->normal_weight > 0.0f)) || | (ss->cache->normal_weight > 0.0f) && ss->cache->first_time) || | ||||
| ELEM(brush->sculpt_tool, | ELEM(brush->sculpt_tool, | ||||
| SCULPT_TOOL_BLOB, | SCULPT_TOOL_BLOB, | ||||
| SCULPT_TOOL_CREASE, | SCULPT_TOOL_CREASE, | ||||
| SCULPT_TOOL_DRAW, | SCULPT_TOOL_DRAW, | ||||
| SCULPT_TOOL_DRAW_SHARP, | SCULPT_TOOL_DRAW_SHARP, | ||||
| SCULPT_TOOL_LAYER, | SCULPT_TOOL_LAYER, | ||||
| SCULPT_TOOL_NUDGE, | SCULPT_TOOL_NUDGE, | ||||
| ▲ Show 20 Lines • Show All 9,032 Lines • Show Last 20 Lines | |||||