Fix T58700: Modifier error msgs not showing.
We need to copy those back from evaluated modifierdata to orig one (as part of `BKE_object_synchronize_to_original()`).
This commit is contained in:
parent
64474fbc22
commit
6a0c25b447
Notes:
blender-bot
2023-02-14 09:48:23 +01:00
Referenced by issue #58700, Modifier error msgs not showing.
|
@ -293,6 +293,18 @@ void BKE_object_synchronize_to_original(Depsgraph *depsgraph, Object *object)
|
|||
copy_m4_m4(object_orig->constinv, object->constinv);
|
||||
object_orig->transflag = object->transflag;
|
||||
object_orig->flag = object->flag;
|
||||
|
||||
/* Copy back error messages from modifiers. */
|
||||
for (ModifierData *md = object->modifiers.first, *md_orig = object_orig->modifiers.first;
|
||||
md != NULL && md_orig != NULL;
|
||||
md = md->next, md_orig = md_orig->next)
|
||||
{
|
||||
BLI_assert(md->type == md_orig->type && STREQ(md->name, md_orig->name));
|
||||
MEM_SAFE_FREE(md_orig->error);
|
||||
if (md->error != NULL) {
|
||||
md_orig->error = BLI_strdup(md->error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool BKE_object_eval_proxy_copy(Depsgraph *depsgraph,
|
||||
|
|
Loading…
Reference in New Issue