Animation: Move Snapping to Scene #109015

Merged
Christoph Lendenfeld merged 35 commits from ChrisLend/blender:frame_snapping into main 2023-09-05 10:07:02 +02:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit 8d28bd1324 - Show all commits

View File

@ -26,8 +26,10 @@
short getAnimEdit_SnapMode(TransInfo *t)
{
eSnapMode autosnap = SCE_SNAP_TO_FRAME;
autosnap = t->scene->toolsettings->snap_anim_mode;
if (t->spacetype == SPACE_ACTION) {
/* TODO: Each editor has its own snapping flag */
/* if (t->spacetype == SPACE_ACTION) {
SpaceAction *saction = (SpaceAction *)t->area->spacedata.first;
if (saction) {
@ -49,7 +51,7 @@ short getAnimEdit_SnapMode(TransInfo *t)
if (snla) {
autosnap = snla->autosnap;
}
}
} */
return autosnap;
}