From fa6d9e0c015707581e6a26f6330b495b847c69fc Mon Sep 17 00:00:00 2001 From: NutmegStudio <62319714+NutmegStudio@users.noreply.github.com> Date: Wed, 15 Apr 2020 15:00:48 +0700 Subject: [PATCH] Change DecalTexture bind from BIND_CONSTANT to BIND_ENUM_CONSTANT --- scene/3d/decal.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scene/3d/decal.cpp b/scene/3d/decal.cpp index 320258b3a1e..77210d8eb9d 100644 --- a/scene/3d/decal.cpp +++ b/scene/3d/decal.cpp @@ -204,11 +204,11 @@ void Decal::_bind_methods() { ADD_GROUP("Cull Mask", ""); ADD_PROPERTY(PropertyInfo(Variant::INT, "cull_mask", PROPERTY_HINT_LAYERS_3D_RENDER), "set_cull_mask", "get_cull_mask"); - BIND_CONSTANT(TEXTURE_ALBEDO); - BIND_CONSTANT(TEXTURE_NORMAL); - BIND_CONSTANT(TEXTURE_ORM); - BIND_CONSTANT(TEXTURE_EMISSION); - BIND_CONSTANT(TEXTURE_MAX); + BIND_ENUM_CONSTANT(TEXTURE_ALBEDO); + BIND_ENUM_CONSTANT(TEXTURE_NORMAL); + BIND_ENUM_CONSTANT(TEXTURE_ORM); + BIND_ENUM_CONSTANT(TEXTURE_EMISSION); + BIND_ENUM_CONSTANT(TEXTURE_MAX); } Decal::Decal() {