Cleanup: remove unused variables
This commit is contained in:
@@ -3342,8 +3342,6 @@ static void push_undo_nodes(const Depsgraph &depsgraph,
|
||||
const IndexMask &node_mask)
|
||||
{
|
||||
SculptSession &ss = *ob.sculpt;
|
||||
bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(ob);
|
||||
|
||||
bool need_coords = ss.cache->supports_gravity;
|
||||
|
||||
if (brush.sculpt_brush_type == SCULPT_BRUSH_TYPE_DRAW_FACE_SETS) {
|
||||
|
||||
@@ -1284,7 +1284,6 @@ static void do_bend_brush(const Depsgraph &depsgraph,
|
||||
const float strength,
|
||||
const eBrushDeformTarget deform_target)
|
||||
{
|
||||
SculptSession &ss = *object.sculpt;
|
||||
bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(object);
|
||||
switch (pbvh.type()) {
|
||||
case bke::pbvh::Type::Mesh: {
|
||||
@@ -1583,7 +1582,6 @@ static void do_slide_brush(const Depsgraph &depsgraph,
|
||||
const float strength,
|
||||
const eBrushDeformTarget deform_target)
|
||||
{
|
||||
SculptSession &ss = *object.sculpt;
|
||||
bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(object);
|
||||
switch (pbvh.type()) {
|
||||
case bke::pbvh::Type::Mesh: {
|
||||
@@ -1865,7 +1863,6 @@ static void do_inflate_brush(const Depsgraph &depsgraph,
|
||||
const float strength,
|
||||
const eBrushDeformTarget deform_target)
|
||||
{
|
||||
SculptSession &ss = *object.sculpt;
|
||||
bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(object);
|
||||
switch (pbvh.type()) {
|
||||
case bke::pbvh::Type::Mesh: {
|
||||
@@ -2436,7 +2433,6 @@ static void do_twist_brush(const Depsgraph &depsgraph,
|
||||
const float strength,
|
||||
const eBrushDeformTarget deform_target)
|
||||
{
|
||||
SculptSession &ss = *object.sculpt;
|
||||
bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(object);
|
||||
switch (pbvh.type()) {
|
||||
case bke::pbvh::Type::Mesh: {
|
||||
@@ -2841,7 +2837,6 @@ static void do_smooth_brush(const Depsgraph &depsgraph,
|
||||
const float strength,
|
||||
const eBrushDeformTarget deform_target)
|
||||
{
|
||||
SculptSession &ss = *object.sculpt;
|
||||
bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(object);
|
||||
switch (pbvh.type()) {
|
||||
case bke::pbvh::Type::Mesh: {
|
||||
|
||||
Reference in New Issue
Block a user