Fix regression with incremental snap in Graph Editor
Regression introduced in {rBb0d9e6797fb8}. Previously the Graphics Editor had a conflict with two different snap types. Auto-Snap and Snap with Ctrl. It is now clearer which snap should prevail.
This commit is contained in:
@@ -615,7 +615,7 @@ static void initSnappingMode(TransInfo *t)
|
|||||||
t->tsnap.mode |= SCE_SNAP_MODE_GRID;
|
t->tsnap.mode |= SCE_SNAP_MODE_GRID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (ELEM(t->spacetype, SPACE_GRAPH, SPACE_ACTION, SPACE_NLA)) {
|
else if (ELEM(t->spacetype, SPACE_ACTION, SPACE_NLA)) {
|
||||||
/* No incremental snapping. */
|
/* No incremental snapping. */
|
||||||
t->tsnap.mode = 0;
|
t->tsnap.mode = 0;
|
||||||
}
|
}
|
||||||
|
@@ -56,10 +56,15 @@ short getAnimEdit_SnapMode(TransInfo *t)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (t->spacetype == SPACE_GRAPH) {
|
else if (t->spacetype == SPACE_GRAPH) {
|
||||||
SpaceGraph *sipo = (SpaceGraph *)t->area->spacedata.first;
|
if ((t->data_type == TFM_TRANSLATION) && activeSnap(t)) {
|
||||||
|
/* Use the translate mode snap. */
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
SpaceGraph *sipo = (SpaceGraph *)t->area->spacedata.first;
|
||||||
|
|
||||||
if (sipo) {
|
if (sipo) {
|
||||||
autosnap = sipo->autosnap;
|
autosnap = sipo->autosnap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (t->spacetype == SPACE_NLA) {
|
else if (t->spacetype == SPACE_NLA) {
|
||||||
|
Reference in New Issue
Block a user