ncannasse 8 лет назад
Родитель
Сommit
ea715e3ae5
1 измененных файлов с 1 добавлено и 2 удалено
  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 {
 	public function getSize( ?out : h2d.col.Bounds ) : h2d.col.Bounds {
 		if( out == null ) out = new h2d.col.Bounds() else out.empty();
 		if( out == null ) out = new h2d.col.Bounds() else out.empty();
-		if( parent != null )
-			parent.syncPos();
+		syncPos();
 		getBoundsRec(parent, out, true);
 		getBoundsRec(parent, out, true);
 		if( out.isEmpty() ) {
 		if( out.isEmpty() ) {
 			addBounds(parent, out, -1, -1, 2, 2);
 			addBounds(parent, out, -1, -1, 2, 2);