Depsgraph: Fix crahs when selecting objects

Was wasy to reproduce by hitting A-key.

Missing part of the recent orig_id pointer commit.
This commit is contained in:
Sergey Sharybin
2018-01-18 14:14:53 +01:00
parent e8452cf0bc
commit 539e170d79

View File

@@ -361,7 +361,7 @@ void BKE_object_eval_uber_data(const EvaluationContext *eval_ctx,
* This way we can restore original object data when we are freeing
* evaluated mesh.
*/
new_mesh->id.newid = &mesh->id;
new_mesh->id.orig_id = &mesh->id;
}
#if 0
if (ob->derivedFinal != NULL) {