void runSetupBrush (SculptBrush& brush) { auto& params = brush.parameters <SBCreaseParameters> (); brush.detailFactor (brush.detailFactor () + 0.5f); params.intensity (this->self->cache ().get <float> ("intensity", 0.5f)); params.invert (this->self->cache ().get <bool> ("invert" , false)); }
void Action :: sculpt (const SculptBrush& brush) { AffectedFaces domain; brush.sculpt (domain); postprocessEdges (brush, domain); Action::finalize (brush.meshRef (), domain); }
void Action :: sculpt (const SculptBrush& brush) { AffectedFaces domain; brush.sculpt (domain); if (domain.isEmpty () == false) { postprocessEdges (brush, domain); } if (brush.meshRef ().isEmpty () == false) { Action::finalize (brush.meshRef (), domain); } }