Fix: simulation nodes not working after copying object

This commit is contained in:
Jacques Lucke 2023-09-27 00:17:54 +02:00
parent f966205022
commit 8418e41bf7
1 changed files with 1 additions and 0 deletions

View File

@ -1890,6 +1890,7 @@ static void copy_data(const ModifierData *md, ModifierData *target, const int fl
}
else {
tnmd->runtime->cache = std::make_shared<bake::ModifierCache>();
update_existing_bake_caches(*tnmd);
/* Clear the bake path when duplicating. */
tnmd->simulation_bake_directory = nullptr;
}