2
0
Эх сурвалжийг харах

fixed deprecated metadata

Nicolas Cannasse 1 жил өмнө
parent
commit
9fb00e7ed5

+ 1 - 2
hrt/impl/Gradient.hx

@@ -6,8 +6,7 @@ import h3d.Vector4;
 
 
 typedef ColorStop = {position : Float, color : Int};
 typedef ColorStop = {position : Float, color : Int};
 
 
-@:enum
-abstract GradientInterpolation(String) from String to String {
+enum abstract GradientInterpolation(String) from String to String {
     var Linear;
     var Linear;
     var Cubic;
     var Cubic;
     var Constant;
     var Constant;

+ 1 - 2
hrt/impl/TextureType.hx

@@ -2,8 +2,7 @@ package hrt.impl;
 
 
 import hrt.impl.Gradient;
 import hrt.impl.Gradient;
 
 
-@:enum
-abstract TextureType(String) from String to String {
+enum abstract TextureType(String) from String to String {
     var gradient;
     var gradient;
     var path;       // Not used as a type inside the json (the playload is a string), default value
     var path;       // Not used as a type inside the json (the playload is a string), default value
 }
 }