Bladeren bron

fixed deprecated metadata

Nicolas Cannasse 1 jaar geleden
bovenliggende
commit
9fb00e7ed5
2 gewijzigde bestanden met toevoegingen van 2 en 4 verwijderingen
  1. 1 2
      hrt/impl/Gradient.hx
  2. 1 2
      hrt/impl/TextureType.hx

+ 1 - 2
hrt/impl/Gradient.hx

@@ -6,8 +6,7 @@ import h3d.Vector4;
 
 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 Cubic;
     var Constant;

+ 1 - 2
hrt/impl/TextureType.hx

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