2
0
Tom Spira 6 жил өмнө
parent
commit
5ba7684f16

+ 3 - 3
hrt/prefab/fx/FX2D.hx

@@ -91,13 +91,13 @@ class FX2DAnimation extends h2d.Object {
 				}
 			}
 			
-			var atlas = Std.downcast(anim.elt2d, hrt.prefab.Atlas);
+			var atlas = Std.downcast(anim.elt2d, hrt.prefab.fx2d.Atlas);
 			if (atlas != null) {
 				@:privateAccess if (!atlas.loop && newLoop)  {
 					atlas.h2dAnim.currentFrame = 0;
 				}
 			} else {
-				var atlas = Std.downcast(anim.elt2d, hrt.prefab.Anim2D);
+				var atlas = Std.downcast(anim.elt2d, hrt.prefab.fx2d.Anim2D);
 				if (atlas != null) {
 					@:privateAccess if (!atlas.loop && newLoop)  {
 						atlas.h2dAnim.currentFrame = 0;
@@ -208,7 +208,7 @@ class FX2D extends BaseFX {
 			anyFound = true;
 		}
 
-		if (Std.is(elt, hrt.prefab.Anim2D) || Std.is(elt, hrt.prefab.Atlas))
+		if (Std.is(elt, hrt.prefab.fx2d.Anim2D) || Std.is(elt, hrt.prefab.fx2d.Atlas))
 			anyFound = true;
 
 		if(anyFound)

+ 1 - 1
hrt/prefab/Anim2D.hx → hrt/prefab/fx2d/Anim2D.hx

@@ -1,4 +1,4 @@
-package hrt.prefab;
+package hrt.prefab.fx2d;
 
 class Anim2D extends Object2D {
 

+ 1 - 1
hrt/prefab/Atlas.hx → hrt/prefab/fx2d/Atlas.hx

@@ -1,4 +1,4 @@
-package hrt.prefab;
+package hrt.prefab.fx2d;
 
 class Atlas extends Object2D {
 

+ 1 - 1
hrt/prefab/Bitmap.hx → hrt/prefab/fx2d/Bitmap.hx

@@ -1,4 +1,4 @@
-package hrt.prefab;
+package hrt.prefab.fx2d;
 
 class Bitmap extends Object2D {