Skip to content

Commit

Permalink
Fix hook inbetween creating extra hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
manongjohn committed Mar 26, 2024
1 parent a2b090e commit 0e1a728
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion toonz/sources/toonz/cellselection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ void inbetweenWithoutUndo(TXshSimpleLevel *sl, std::vector<TFrameId> fids,
if (hooks) {
for (int j = 0; j < hooks->getHookCount(); j++) {
Hook *hook = hooks->getHook(j);
if (!hook) continue;
if (!hook || hook->isEmpty()) continue;
TPointD firstPos = hook->getAPos(fid0);
TPointD lastPos = hook->getAPos(fid1);
TPointD iPos = firstPos * (1 - t) + lastPos * t;
Expand Down
2 changes: 1 addition & 1 deletion toonz/sources/toonz/filmstripcommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2756,7 +2756,7 @@ void FilmstripCmd::inbetweenWithoutUndo(
if (hooks) {
for (int j = 0; j < hooks->getHookCount(); j++) {
Hook *hook = hooks->getHook(j);
if (!hook) continue;
if (!hook || hook->isEmpty()) continue;
TPointD firstPos = hook->getAPos(fid0);
TPointD lastPos = hook->getAPos(fid1);
TPointD iPos = firstPos * (1 - s) + lastPos * s;
Expand Down

0 comments on commit 0e1a728

Please sign in to comment.