Explorar el Código

bugfix in getSize()

ncannasse hace 9 años
padre
commit
ea715e3ae5
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      h2d/Sprite.hx

+ 1 - 2
h2d/Sprite.hx

@@ -71,8 +71,7 @@ class Sprite {
 	**/
 	public function getSize( ?out : h2d.col.Bounds ) : h2d.col.Bounds {
 		if( out == null ) out = new h2d.col.Bounds() else out.empty();
-		if( parent != null )
-			parent.syncPos();
+		syncPos();
 		getBoundsRec(parent, out, true);
 		if( out.isEmpty() ) {
 			addBounds(parent, out, -1, -1, 2, 2);