Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2021-05-24 18:05:59 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-05-24 18:29:37 +0300
commit1a69d491e57cb7b7a834f265f59df3bd8f01e55b (patch)
tree84a0579618b38a482e5e73831de4a9e2bc45cc99
parent2265104f0b14fa0d6693d881d7e8c1b8c2aa755b (diff)
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`.
-rw-r--r--source/blender/editors/transform/transform_mode_translate.c3
1 files changed, 2 insertions, 1 deletions
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);
}
/** \} */