Fix T50026: "Only Insert Needed" doesn't work when using Trackball rotation
The rotation case here only covered rotation by the "Rotate" tool, but skipped the "Trackball" tool.
This commit is contained in:
parent
6397319659
commit
8b2905952e
Notes:
blender-bot
2023-02-14 11:29:52 +01:00
Referenced by issue #50051, Grease Pencil + OpenGL crash in VSE Referenced by issue #50026, "Only Insert Needed" doesn't work when using Trackball rotation
|
@ -5583,7 +5583,7 @@ void autokeyframe_ob_cb_func(bContext *C, Scene *scene, View3D *v3d, Object *ob,
|
|||
if (tmode == TFM_TRANSLATION) {
|
||||
do_loc = true;
|
||||
}
|
||||
else if (tmode == TFM_ROTATION) {
|
||||
else if (ELEM(tmode, TFM_ROTATION, TFM_TRACKBALL)) {
|
||||
if (v3d->around == V3D_AROUND_ACTIVE) {
|
||||
if (ob != OBACT)
|
||||
do_loc = true;
|
||||
|
@ -5728,7 +5728,7 @@ void autokeyframe_pose_cb_func(bContext *C, Scene *scene, View3D *v3d, Object *o
|
|||
else
|
||||
do_loc = true;
|
||||
}
|
||||
else if (tmode == TFM_ROTATION) {
|
||||
else if (ELEM(tmode, TFM_ROTATION, TFM_TRACKBALL)) {
|
||||
if (ELEM(v3d->around, V3D_AROUND_CURSOR, V3D_AROUND_ACTIVE))
|
||||
do_loc = true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue