Depsgraph: Only store original mesh pointer for mesh object

This commit is contained in:
2018-06-04 15:24:10 +02:00
parent 52f9023fbf
commit 2b22a61152
2 changed files with 3 additions and 2 deletions

View File

@@ -542,7 +542,9 @@ void update_special_pointers(const Depsgraph *depsgraph,
BLI_assert(object_cow->derivedDeform == NULL);
object_cow->mode = object_orig->mode;
object_cow->sculpt = object_orig->sculpt;
object_cow->runtime.mesh_orig = (Mesh *)object_cow->data;
if (object_cow->type == OB_MESH) {
object_cow->runtime.mesh_orig = (Mesh *)object_cow->data;
}
if (object_cow->type == OB_ARMATURE) {
BKE_pose_remap_bone_pointers((bArmature *)object_cow->data,
object_cow->pose);