Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_brush.c
| Show First 20 Lines • Show All 353 Lines • ▼ Show 20 Lines | static bool rna_BrushCapabilities_has_overlay_get(PointerRNA *ptr) | ||||
| Brush *br = (Brush *)ptr->data; | Brush *br = (Brush *)ptr->data; | ||||
| return ELEM( | return ELEM( | ||||
| br->mtex.brush_map_mode, MTEX_MAP_MODE_VIEW, MTEX_MAP_MODE_TILED, MTEX_MAP_MODE_STENCIL); | br->mtex.brush_map_mode, MTEX_MAP_MODE_VIEW, MTEX_MAP_MODE_TILED, MTEX_MAP_MODE_STENCIL); | ||||
| } | } | ||||
| static bool rna_BrushCapabilitiesSculpt_has_persistence_get(PointerRNA *ptr) | static bool rna_BrushCapabilitiesSculpt_has_persistence_get(PointerRNA *ptr) | ||||
| { | { | ||||
| Brush *br = (Brush *)ptr->data; | Brush *br = (Brush *)ptr->data; | ||||
| return br->sculpt_tool == SCULPT_TOOL_LAYER; | return ELEM(br->sculpt_tool, SCULPT_TOOL_LAYER, SCULPT_TOOL_POSE); | ||||
| } | } | ||||
| static bool rna_BrushCapabilitiesSculpt_has_pinch_factor_get(PointerRNA *ptr) | static bool rna_BrushCapabilitiesSculpt_has_pinch_factor_get(PointerRNA *ptr) | ||||
| { | { | ||||
| Brush *br = (Brush *)ptr->data; | Brush *br = (Brush *)ptr->data; | ||||
| return ELEM(br->sculpt_tool, SCULPT_TOOL_BLOB, SCULPT_TOOL_CREASE, SCULPT_TOOL_SNAKE_HOOK); | return ELEM(br->sculpt_tool, SCULPT_TOOL_BLOB, SCULPT_TOOL_CREASE, SCULPT_TOOL_SNAKE_HOOK); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,749 Lines • Show Last 20 Lines | |||||