Fix T60996: Dyntopo flood fill fails due to missing ob->imat
authorJacques Lucke <mail@jlucke.com>
Thu, 31 Jan 2019 11:42:51 +0000 (12:42 +0100)
committerJacques Lucke <mail@jlucke.com>
Thu, 31 Jan 2019 11:42:51 +0000 (12:42 +0100)
Reviewers: brecht

Differential Revision: https://developer.blender.org/D4285

source/blender/blenkernel/intern/object_update.c

index 1b0717856840e4a38abb88da320f067ec0151d47..438c2651ab2d1215a8df680820bad4b28266ed70 100644 (file)
@@ -290,6 +290,7 @@ void BKE_object_synchronize_to_original(Depsgraph *depsgraph, Object *object)
        object_orig->base_flag = object->base_flag;
        /* Transformation flags. */
        copy_m4_m4(object_orig->obmat, object->obmat);
+       invert_m4_m4(object_orig->imat, object_orig->obmat);
        copy_m4_m4(object_orig->constinv, object->constinv);
        object_orig->transflag = object->transflag;
        object_orig->flag = object->flag;