Fix: GPv3: Unused parameter in remove_from_vertex_group
Caused by 5585d29d30.
Forgot to remove the parameter.
This commit is contained in:
@@ -33,10 +33,7 @@ void assign_to_vertex_group_from_mask(CurvesGeometry &curves,
|
||||
* Remove selected vertices from the vertex group.
|
||||
* \return True if at least one vertex was removed from the group.
|
||||
*/
|
||||
bool remove_from_vertex_group(GreasePencil &grease_pencil,
|
||||
Drawing &drawing,
|
||||
StringRef name,
|
||||
bool use_selection);
|
||||
bool remove_from_vertex_group(Drawing &drawing, StringRef name, bool use_selection);
|
||||
|
||||
/** Remove vertices from all vertex groups. */
|
||||
void clear_vertex_groups(GreasePencil &grease_pencil);
|
||||
|
||||
@@ -129,10 +129,7 @@ void assign_to_vertex_group(Drawing &drawing, const StringRef name, const float
|
||||
}
|
||||
}
|
||||
|
||||
bool remove_from_vertex_group(GreasePencil &grease_pencil,
|
||||
Drawing &drawing,
|
||||
const StringRef name,
|
||||
const bool use_selection)
|
||||
bool remove_from_vertex_group(Drawing &drawing, const StringRef name, const bool use_selection)
|
||||
{
|
||||
bool changed = false;
|
||||
bke::CurvesGeometry &curves = drawing.strokes_for_write();
|
||||
|
||||
@@ -2541,7 +2541,7 @@ static void grease_pencil_clear_from_vgroup(Scene &scene,
|
||||
continue;
|
||||
}
|
||||
bke::greasepencil::Drawing &drawing = reinterpret_cast<GreasePencilDrawing *>(base)->wrap();
|
||||
bke::greasepencil::remove_from_vertex_group(grease_pencil, drawing, dg->name, use_selection);
|
||||
bke::greasepencil::remove_from_vertex_group(drawing, dg->name, use_selection);
|
||||
}
|
||||
/* Remove vgroup from the list. */
|
||||
BKE_object_defgroup_remove(&ob, dg);
|
||||
@@ -2549,8 +2549,7 @@ static void grease_pencil_clear_from_vgroup(Scene &scene,
|
||||
else {
|
||||
Vector<MutableDrawingInfo> drawings = retrieve_editable_drawings(scene, grease_pencil);
|
||||
for (const MutableDrawingInfo &info : drawings) {
|
||||
bke::greasepencil::remove_from_vertex_group(
|
||||
grease_pencil, info.drawing, dg->name, use_selection);
|
||||
bke::greasepencil::remove_from_vertex_group(info.drawing, dg->name, use_selection);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user