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 6,596 Lines • ▼ Show 20 Lines | |||||
| bool SCULPT_poll_view3d(bContext *C) | bool SCULPT_poll_view3d(bContext *C) | ||||
| { | { | ||||
| return (SCULPT_poll(C) && CTX_wm_region_view3d(C)); | return (SCULPT_poll(C) && CTX_wm_region_view3d(C)); | ||||
| } | } | ||||
| bool SCULPT_poll(bContext *C) | bool SCULPT_poll(bContext *C) | ||||
| { | { | ||||
| return SCULPT_mode_poll(C) && paint_poll(C); | return SCULPT_mode_poll(C) && PAINT_brush_tool_poll(C); | ||||
| } | } | ||||
| static const char *sculpt_tool_name(Sculpt *sd) | static const char *sculpt_tool_name(Sculpt *sd) | ||||
| { | { | ||||
| Brush *brush = BKE_paint_brush(&sd->paint); | Brush *brush = BKE_paint_brush(&sd->paint); | ||||
| switch ((eBrushSculptTool)brush->sculpt_tool) { | switch ((eBrushSculptTool)brush->sculpt_tool) { | ||||
| case SCULPT_TOOL_DRAW: | case SCULPT_TOOL_DRAW: | ||||
| ▲ Show 20 Lines • Show All 2,819 Lines • Show Last 20 Lines | |||||