Cycles: Free evaluated meshed when we are done with object

This commit is contained in:
2018-06-25 17:02:19 +02:00
parent 7cd86cd1fe
commit 540b99bd28

View File

@@ -404,6 +404,9 @@ void BKE_object_free_caches(Object *object)
}
}
BKE_object_free_derived_caches(object);
update_flag |= OB_RECALC_DATA;
/* Tag object for update, so once memory critical operation is over and
* scene update routines are back to it's business the object will be
* guaranteed to be in a known state.