[Bf-blender-cvs] [7b47aca07cd] temp-lanpr-cleanup2: Fix T69799: Glitches when moving object camera is locked to
mano-wii
noreply at git.blender.org
Wed Nov 13 06:05:00 CET 2019
Commit: 7b47aca07cd678487da337348937e0105de60ec8
Author: mano-wii
Date: Fri Nov 8 17:58:00 2019 -0300
Branches: temp-lanpr-cleanup2
https://developer.blender.org/rB7b47aca07cd678487da337348937e0105de60ec8
Fix T69799: Glitches when moving object camera is locked to
The idea is to indicate that the view3d matrix is being transformed too
and this avoids cyclic dependencies.
===================================================================
M source/blender/editors/transform/transform.h
M source/blender/editors/transform/transform_convert.c
===================================================================
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h
index c437714956a..0264069c368 100644
--- a/source/blender/editors/transform/transform.h
+++ b/source/blender/editors/transform/transform.h
@@ -727,7 +727,7 @@ enum {
T_EDIT = 1 << 1,
T_POSE = 1 << 2,
T_TEXTURE = 1 << 3,
- /** Transforming the camera while in camera view. */
+ /** Transforming the 3d view. */
T_CAMERA = 1 << 4,
/** Transforming the 3D cursor. */
T_CURSOR = 1 << 5,
diff --git a/source/blender/editors/transform/transform_convert.c b/source/blender/editors/transform/transform_convert.c
index 64ad8b2091e..c17a726576a 100644
--- a/source/blender/editors/transform/transform_convert.c
+++ b/source/blender/editors/transform/transform_convert.c
@@ -2727,6 +2727,9 @@ void createTransData(bContext *C, TransInfo *t)
t->flag |= T_CAMERA;
}
}
+ else if (v3d->ob_centre && v3d->ob_centre->id.tag & LIB_TAG_DOIT) {
+ t->flag |= T_CAMERA;
+ }
}
}
More information about the Bf-blender-cvs
mailing list