Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_stroke.c
| Show First 20 Lines • Show All 250 Lines • ▼ Show 20 Lines | |||||
| static bool paint_tool_require_inbetween_mouse_events(Brush *brush, ePaintMode mode) | static bool paint_tool_require_inbetween_mouse_events(Brush *brush, ePaintMode mode) | ||||
| { | { | ||||
| switch (mode) { | switch (mode) { | ||||
| case PAINT_MODE_SCULPT: | case PAINT_MODE_SCULPT: | ||||
| if (ELEM(brush->sculpt_tool, | if (ELEM(brush->sculpt_tool, | ||||
| SCULPT_TOOL_GRAB, | SCULPT_TOOL_GRAB, | ||||
| SCULPT_TOOL_ROTATE, | SCULPT_TOOL_ROTATE, | ||||
| SCULPT_TOOL_THUMB, | SCULPT_TOOL_THUMB, | ||||
| SCULPT_TOOL_SNAKE_HOOK, | |||||
| SCULPT_TOOL_ELASTIC_DEFORM, | SCULPT_TOOL_ELASTIC_DEFORM, | ||||
| SCULPT_TOOL_POSE)) { | SCULPT_TOOL_POSE)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| else { | else { | ||||
| return true; | return true; | ||||
| } | } | ||||
| default: | default: | ||||
| ▲ Show 20 Lines • Show All 1,303 Lines • Show Last 20 Lines | |||||