Validate input in NoiseTexture::set_seamless_blend_skirt()
This commit is contained in:
parent
7f384886ce
commit
0e5c41857c
1 changed files with 2 additions and 0 deletions
|
@ -241,6 +241,8 @@ bool NoiseTexture::get_seamless() {
|
|||
}
|
||||
|
||||
void NoiseTexture::set_seamless_blend_skirt(real_t p_blend_skirt) {
|
||||
ERR_FAIL_COND(p_blend_skirt < 0.05 || p_blend_skirt > 1);
|
||||
|
||||
if (p_blend_skirt == seamless_blend_skirt) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue