diff options
author | reduz <reduzio@gmail.com> | 2021-07-06 18:56:28 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2021-07-06 18:57:38 -0300 |
commit | c43f624d44fe143364154ee232332e17a4fddc3d (patch) | |
tree | f8065065c239431799d0fa0a1f823aaddfe759bb /core | |
parent | 5d7c23dcc66758000544d7ef841e7db11ae51c4e (diff) |
Unify material parameter update
* Unifies how material parameters are updated.
* Single function, easier to maintain.
* Updates materials properly when textures change.
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/rid_owner.h | 2 |
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; |