summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-11-01 12:56:05 +0100
committerGitHub <noreply@github.com>2021-11-01 12:56:05 +0100
commitd86b680e079936b1fb745b71cfa2e7dfd30f2258 (patch)
treedd17f35cf05d9461eed635695041f7d0a5635c7b /scene
parent54bedc4674d59f41c07bc7145168c432525aa1c1 (diff)
parent10818cfc102d9c0ac0e28b25a3997e6b6d93c2fd (diff)
Merge pull request #54480 from timothyqiu/texture-replace
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/texture.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp
index dafc32b490..485074e283 100644
--- a/scene/resources/texture.cpp
+++ b/scene/resources/texture.cpp
@@ -1503,6 +1503,7 @@ Ref<Curve> CurveTexture::get_curve() const {
}
void CurveTexture::set_texture_mode(TextureMode p_mode) {
+ ERR_FAIL_COND(p_mode < TEXTURE_MODE_RGB || p_mode > TEXTURE_MODE_RED);
if (texture_mode == p_mode) {
return;
}