Fix #130250: Modifier copy to selected crash using quick favorites
The rest of this function has null checks for the modifier because it might not be part of the context and retrieved during invocation later. Pull Request: https://projects.blender.org/blender/blender/pulls/130272
This commit is contained in:
@@ -2701,12 +2701,14 @@ static bool modifier_copy_to_selected_poll(bContext *C)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!md && BKE_object_supports_modifiers(ob)) {
|
||||
if (!md) {
|
||||
/* Skip type check if modifier could not be found ("modifier" context variable not set). */
|
||||
found_supported_objects = true;
|
||||
break;
|
||||
if (BKE_object_supports_modifiers(ob)) {
|
||||
found_supported_objects = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (BKE_object_support_modifier_type_check(ob, md->type)) {
|
||||
else if (BKE_object_support_modifier_type_check(ob, md->type)) {
|
||||
found_supported_objects = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user