Merge pull request #21569 from JFonS/add_noise_textures
Add SimplexNoise and NoiseTexture as new resources
This commit is contained in:
@ -1633,16 +1633,17 @@ void GradientTexture::_queue_update() {
|
||||
if (update_pending)
|
||||
return;
|
||||
|
||||
update_pending = true;
|
||||
call_deferred("_update");
|
||||
}
|
||||
|
||||
void GradientTexture::_update() {
|
||||
|
||||
update_pending = false;
|
||||
|
||||
if (gradient.is_null())
|
||||
return;
|
||||
|
||||
update_pending = false;
|
||||
|
||||
PoolVector<uint8_t> data;
|
||||
data.resize(width * 4);
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user