From 2b37af61d3a29086f40965c86a255b88bf92e90f Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 26 Sep 2022 15:24:48 -0400 Subject: node-2d: Initialize render position during instantiation. --- starling/node-2d.scm | 1 + 1 file changed, 1 insertion(+) 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)) -- cgit v1.2.3