Fix #116367: Scale snapping not working in Graph Editor
The issue was that the "Affect" options from the 3D viewport were also used for the Graph Editor. This was discussed in the Animation & Rigging module meeting. https://devtalk.blender.org/t/2023-12-21-animation-rigging-module-meeting/32748 The consensus was that the Animation Editors should have their own copy of the "Affect" flags. For this commit I opted for a more immediate solution that ignores the "Affect" flag in the animation editors. The adding of the flag can be left for a feature PR. Pull Request: https://projects.blender.org/blender/blender/pulls/116781
This commit is contained in:
parent
d096927139
commit
86555838f1
|
@ -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