Fix #116367: Scale snapping not working in Graph Editor #116781
|
@ -164,6 +164,10 @@ bool transform_snap_is_active(const TransInfo *t)
|
|||
|
||||
bool transformModeUseSnap(const TransInfo *t)
|
||||
{
|
||||
/* The animation editors should not depend on the snapping options of the 3D viewport. */
|
||||
if (ELEM(t->spacetype, SPACE_ACTION, SPACE_GRAPH, SPACE_NLA)) {
|
||||
return true;
|
||||
}
|
||||
ToolSettings *ts = t->settings;
|
||||
if (t->mode == TFM_TRANSLATION) {
|
||||
return (ts->snap_transform_mode_flag & SCE_SNAP_TRANSFORM_MODE_TRANSLATE) != 0;
|
||||
|
|
Loading…
Reference in New Issue