Fix #127616: Copy to selected adds modifier to linked object

Add extra check to prevent copying modifier on selected linked objects

Pull Request: https://projects.blender.org/blender/blender/pulls/127797
This commit is contained in:
Pratik Borhade
2024-09-18 12:47:52 +02:00
committed by Pratik Borhade
parent 928ab6dc0f
commit eb44c39824

View File

@@ -2442,6 +2442,9 @@ static int modifier_copy_to_selected_exec(bContext *C, wmOperator *op)
if (ob == obact) {
continue;
}
if (!ID_IS_EDITABLE(ob)) {
continue;
}
if (modifier_copy_to_object(bmain, scene, obact, md, ob, op->reports)) {
WM_event_add_notifier(C, NC_OBJECT | ND_MODIFIER | NA_ADDED, ob);
num_copied++;