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`.
This commit is contained in:
parent
2265104f0b
commit
1a69d491e5
Notes:
blender-bot
2023-02-14 10:11:54 +01:00
Referenced by issue #88478, Camera zoom not working with G+MMB Referenced by issue #87513, Regression: View jump randomly when zoom in and out with AutoDepth
|
@ -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);
|
||||
}
|
||||
/** \} */
|
||||
|
|
Loading…
Reference in New Issue