|
@@ -24,6 +24,7 @@ class LinearFrame {
|
|
|
}
|
|
|
|
|
|
class LinearObject extends AnimatedObject {
|
|
|
+ public var hasPosition : Bool = true;
|
|
|
public var hasRotation : Bool;
|
|
|
public var hasScale : Bool;
|
|
|
public var frames : haxe.ds.Vector<LinearFrame>;
|
|
@@ -48,7 +49,6 @@ class LinearObject extends AnimatedObject {
|
|
|
|
|
|
class LinearAnimation extends Animation {
|
|
|
|
|
|
- @:s public var resPath : String;
|
|
|
var syncFrame : Float;
|
|
|
|
|
|
public function new(name,frame,sampling) {
|
|
@@ -98,8 +98,6 @@ class LinearAnimation extends Animation {
|
|
|
if( a == null )
|
|
|
a = new LinearAnimation(name, frameCount, sampling);
|
|
|
super.clone(a);
|
|
|
- var la = Std.instance(a, LinearAnimation);
|
|
|
- la.resPath = resPath;
|
|
|
return a;
|
|
|
}
|
|
|
|
|
@@ -288,17 +286,4 @@ class LinearAnimation extends Animation {
|
|
|
}
|
|
|
#end
|
|
|
|
|
|
-
|
|
|
- #if (hxbit && !macro)
|
|
|
- function customSerialize(ctx:hxbit.Serializer) {
|
|
|
- }
|
|
|
-
|
|
|
- function customUnserialize(ctx:hxbit.Serializer) {
|
|
|
- var l = cast(ctx, hxd.fmt.hsd.Serializer).loadAnimation(resPath);
|
|
|
- var objects = [for( a in l.objects ) a.clone()];
|
|
|
- l.clone(this);
|
|
|
- this.objects = objects;
|
|
|
- }
|
|
|
- #end
|
|
|
-
|
|
|
}
|