Skip to content

Commit

Permalink
Fix first move of group not working
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Feb 6, 2024
1 parent 2d69963 commit 4097f7b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions move-transition.c
Original file line number Diff line number Diff line change
Expand Up @@ -1624,6 +1624,11 @@ bool render2_item(struct move_info *move, struct move_item *item)
obs_sceneitem_get_rot(item->item_a));
obs_sceneitem_get_draw_transform(item->item_a,
&transform_a);
if (isnan(transform_a.x.x) ||
isinf(transform_a.x.x))
move_get_draw_transform(item->item_a,
false, false,
&transform_a);
}
}
struct matrix4 transform_b;
Expand All @@ -1641,6 +1646,11 @@ bool render2_item(struct move_info *move, struct move_item *item)
obs_sceneitem_get_rot(item->item_b));
obs_sceneitem_get_draw_transform(item->item_b,
&transform_b);
if (isnan(transform_b.x.x) ||
isinf(transform_b.x.x))
move_get_draw_transform(item->item_b,
false, false,
&transform_b);
}
}

Expand Down

0 comments on commit 4097f7b

Please sign in to comment.