diff --git a/TODO.MD b/TODO.MD index c2a817a..3c91e7d 100644 --- a/TODO.MD +++ b/TODO.MD @@ -1,10 +1,10 @@ - Centered justification in UI - Web read/write - Ship with default setup -- Fix -vet errors - Set grid DONE: +- Fix -vet errors - When there is no matrix it should still draw the rectangle - Always show coordinates - Web build diff --git a/src/animation.odin b/src/animation.odin index 83ab71d..b034a8e 100644 --- a/src/animation.odin +++ b/src/animation.odin @@ -203,6 +203,7 @@ animation_draw :: proc(animation: ^Animation, global_transform: mat3, mode: Anim } } if animation.matrix_count <= 0 { + animation.shapes_animated_last.rectangle = rectangles[0] break } switch mode {