summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-07 01:44:36 +0200
committerGitHub <noreply@github.com>2021-07-07 01:44:36 +0200
commit506daf6d5d4a0e8adc06252cf47909667da17f45 (patch)
tree8738761c4b6d72b0d7f0ad451169351d3d643d6a /core
parentce941397e5507fc0c1154a2e393331aa6099f66b (diff)
parentc43f624d44fe143364154ee232332e17a4fddc3d (diff)
Merge pull request #50229 from reduz/fix-textures-not-updating
Unify material parameter update
Diffstat (limited to 'core')
-rw-r--r--core/templates/rid_owner.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/rid_owner.h b/core/templates/rid_owner.h
index e4964f744e..4f5c74ca46 100644
--- a/core/templates/rid_owner.h
+++ b/core/templates/rid_owner.h
@@ -193,7 +193,7 @@ public:
if (THREAD_SAFE) {
spin_lock.unlock();
}
- if (validator_chunks[idx_chunk][idx_element] & 0x80000000) {
+ if ((validator_chunks[idx_chunk][idx_element] & 0x80000000) && validator_chunks[idx_chunk][idx_element] != 0xFFFFFFFF) {
ERR_FAIL_V_MSG(nullptr, "Attempting to use an uninitialized RID");
}
return nullptr;