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 5,660 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| SculptSession *ss = ob->sculpt; | SculptSession *ss = ob->sculpt; | ||||
| int totnode; | int totnode; | ||||
| PBVHNode **nodes; | PBVHNode **nodes; | ||||
| /* Check for unsupported features. */ | /* Check for unsupported features. */ | ||||
| PBVHType type = BKE_pbvh_type(ss->pbvh); | PBVHType type = BKE_pbvh_type(ss->pbvh); | ||||
| if (brush->sculpt_tool == SCULPT_TOOL_PAINT && type != PBVH_FACES) { | if (brush->sculpt_tool == SCULPT_TOOL_PAINT && type != PBVH_FACES) { | ||||
| if (!U.experimental.use_sculpt_vertex_colors) { | |||||
| return; | return; | ||||
| } | } | ||||
| } | |||||
| if (brush->sculpt_tool == SCULPT_TOOL_SMEAR && type != PBVH_FACES) { | if (brush->sculpt_tool == SCULPT_TOOL_SMEAR && type != PBVH_FACES) { | ||||
| if (!U.experimental.use_sculpt_vertex_colors) { | |||||
| return; | return; | ||||
| } | } | ||||
| } | |||||
| /* Build a list of all nodes that are potentially within the brush's area of influence */ | /* Build a list of all nodes that are potentially within the brush's area of influence */ | ||||
| /* These brushes need to update all nodes as they are not constrained by the brush radius */ | /* These brushes need to update all nodes as they are not constrained by the brush radius */ | ||||
| /* Elastic deform needs all nodes to avoid artifacts as the effect of the brush is not | /* Elastic deform needs all nodes to avoid artifacts as the effect of the brush is not | ||||
| * constrained by the radius. */ | * constrained by the radius. */ | ||||
| /* Pose needs all nodes because it applies all symmetry iterations at the same time and the IK | /* Pose needs all nodes because it applies all symmetry iterations at the same time and the IK | ||||
| * chain can grow to any area of the model. */ | * chain can grow to any area of the model. */ | ||||
| ▲ Show 20 Lines • Show All 3,578 Lines • Show Last 20 Lines | |||||