[Bf-blender-cvs] [1a69d491e57] blender-v2.93-release: Fix T88478: Fallback to dolly not working when moving the camera in camera view

Germano Cavalcante noreply at git.blender.org
Mon May 24 17:29:48 CEST 2021


Commit: 1a69d491e57cb7b7a834f265f59df3bd8f01e55b
Author: Germano Cavalcante
Date:   Mon May 24 12:05:59 2021 -0300
Branches: blender-v2.93-release
https://developer.blender.org/rB1a69d491e57cb7b7a834f265f59df3bd8f01e55b

Fix T88478: Fallback to dolly not working when moving the camera in camera view

This fallback is an old hack.

It is difficult to have an orientation convention when several random
factors determine which one should be used.

In this case, to "fix" the problem, a new behavior had to be implemented.
Now the redo when moving the camera in `Camera View` has the default
orientation as `View`.

===================================================================

M	source/blender/editors/transform/transform_mode_translate.c

===================================================================

diff --git a/source/blender/editors/transform/transform_mode_translate.c b/source/blender/editors/transform/transform_mode_translate.c
index 0bef6364214..175b7b52a1a 100644
--- a/source/blender/editors/transform/transform_mode_translate.c
+++ b/source/blender/editors/transform/transform_mode_translate.c
@@ -471,6 +471,7 @@ void initTranslation(TransInfo *t)
     t->num.unit_type[2] = B_UNIT_NONE;
   }
 
-  transform_mode_default_modal_orientation_set(t, V3D_ORIENT_GLOBAL);
+  transform_mode_default_modal_orientation_set(
+      t, (t->options & CTX_CAMERA) ? V3D_ORIENT_VIEW : V3D_ORIENT_GLOBAL);
 }
 /** \} */



More information about the Bf-blender-cvs mailing list