From c43f624d44fe143364154ee232332e17a4fddc3d Mon Sep 17 00:00:00 2001 From: reduz Date: Tue, 6 Jul 2021 18:56:28 -0300 Subject: Unify material parameter update * Unifies how material parameters are updated. * Single function, easier to maintain. * Updates materials properly when textures change. --- core/templates/rid_owner.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/templates') 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; -- cgit v1.2.3