Fix #116367: Scale snapping not working in Graph Editor #116781

Merged
Christoph Lendenfeld merged 1 commits from ChrisLend/blender:affect_snap_for_anim_editors into main 2024-01-04 14:04:06 +01:00
1 changed files with 4 additions and 0 deletions

View File

@ -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;