From 5236b02ac5e86663fb2ab11d0305a44e8ec5cfbd Mon Sep 17 00:00:00 2001 From: Joseph Cloutier Date: Fri, 1 Sep 2023 02:07:04 -0400 Subject: [PATCH 1/2] Fix enum abstract warning. --- away3d/textures/Anisotropy.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/away3d/textures/Anisotropy.hx b/away3d/textures/Anisotropy.hx index b60c1c90..cc667e80 100644 --- a/away3d/textures/Anisotropy.hx +++ b/away3d/textures/Anisotropy.hx @@ -1,6 +1,6 @@ package away3d.textures; -@:enum abstract Anisotropy(Null) +#if haxe4 enum #else @:enum #end abstract Anisotropy(Null) { public var NONE = 0; public var ANISOTROPIC2X = 1; From 480537eeed2d096d33289a2bd7676a5fe6f3e6b7 Mon Sep 17 00:00:00 2001 From: Joseph Cloutier Date: Fri, 1 Sep 2023 02:25:40 -0400 Subject: [PATCH 2/2] Fix "possible typo" warning. Setting `LightMapMethod.ADD` to a new value shouldn't break much, if anything. But there's no reason that should be possible in the first place. --- away3d/materials/methods/LightMapMethod.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/away3d/materials/methods/LightMapMethod.hx b/away3d/materials/methods/LightMapMethod.hx index 272e1c53..40eb9fc2 100644 --- a/away3d/materials/methods/LightMapMethod.hx +++ b/away3d/materials/methods/LightMapMethod.hx @@ -26,7 +26,7 @@ class LightMapMethod extends EffectMethodBase /** * Indicates the light map should be added into the calculated shading result. */ - public static var ADD:BlendMode = BlendMode.ADD; + public static inline var ADD:BlendMode = BlendMode.ADD; private var _texture:Texture2DBase;