diff options
author | David Thompson <dthompson2@worcester.edu> | 2022-09-26 15:24:48 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2022-09-26 15:24:48 -0400 |
commit | 2b37af61d3a29086f40965c86a255b88bf92e90f (patch) | |
tree | e538cf84241dac2dc935d3c11ae5f26ac3de9267 | |
parent | a3ebe8cc0c99207968552f98dfdb75f7d9ce1bff (diff) |
node-2d: Initialize render position during instantiation.
-rw-r--r-- | starling/node-2d.scm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/starling/node-2d.scm b/starling/node-2d.scm index 3dc0804..3f289f6 100644 --- a/starling/node-2d.scm +++ b/starling/node-2d.scm @@ -386,6 +386,7 @@ (when (= (height node) 0.0) (set! (height node) (default-height node))) ;; Build an initial bounding box. + (vec2-copy! (position node) (render-position node)) (refresh-local-matrix node) (refresh-bounding-box node)) |