Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_intern.h
| Show First 20 Lines • Show All 417 Lines • ▼ Show 20 Lines | void SCULPT_cloth_simulation_limits_draw(const uint gpuattr, | ||||
| const float line_width, | const float line_width, | ||||
| const float outline_col[3], | const float outline_col[3], | ||||
| const float alpha); | const float alpha); | ||||
| void SCULPT_cloth_plane_falloff_preview_draw(const uint gpuattr, | void SCULPT_cloth_plane_falloff_preview_draw(const uint gpuattr, | ||||
| struct SculptSession *ss, | struct SculptSession *ss, | ||||
| const float outline_col[3], | const float outline_col[3], | ||||
| float outline_alpha); | float outline_alpha); | ||||
| PBVHNode **SCULPT_cloth_brush_affected_nodes_gather(SculptSession *ss, | |||||
| Brush *brush, | |||||
| int *r_totnode); | |||||
| BLI_INLINE bool SCULPT_is_cloth_deform_brush(const Brush *brush) | BLI_INLINE bool SCULPT_is_cloth_deform_brush(const Brush *brush) | ||||
| { | { | ||||
| return (brush->sculpt_tool == SCULPT_TOOL_CLOTH && ELEM(brush->cloth_deform_type, | return (brush->sculpt_tool == SCULPT_TOOL_CLOTH && ELEM(brush->cloth_deform_type, | ||||
| BRUSH_CLOTH_DEFORM_GRAB, | BRUSH_CLOTH_DEFORM_GRAB, | ||||
| BRUSH_CLOTH_DEFORM_SNAKE_HOOK)) || | BRUSH_CLOTH_DEFORM_SNAKE_HOOK)) || | ||||
| /* All brushes that are not the cloth brush deform the simulation using softbody | /* All brushes that are not the cloth brush deform the simulation using softbody | ||||
| * constraints instead of applying forces. */ | * constraints instead of applying forces. */ | ||||
| (brush->sculpt_tool != SCULPT_TOOL_CLOTH && | (brush->sculpt_tool != SCULPT_TOOL_CLOTH && | ||||
| ▲ Show 20 Lines • Show All 754 Lines • Show Last 20 Lines | |||||