Explorar o código

fixed getInteractive when pos not yet updated

Nicolas Cannasse %!s(int64=5) %!d(string=hai) anos
pai
achega
b3352c24d9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      h2d/Scene.hx

+ 1 - 0
h2d/Scene.hx

@@ -355,6 +355,7 @@ class Scene extends Layers implements h3d.IDrawable implements hxd.SceneEvents.I
 	public function getInteractive( x : Float, y : Float ) : Interactive {
 		var pt = shapePoint;
 		for( i in interactive ) {
+			if( i.posChanged ) i.syncPos();
 
 			var dx = x - i.absX;
 			var dy = y - i.absY;