From 9ffe57a10eecf79ab8df2f0497d0387383755df3 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 10 Jun 2019 14:12:24 -0300 Subject: Modify RenderingDevice to use RIDs, now that they are O(1) --- core/rid.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core') diff --git a/core/rid.h b/core/rid.h index 583d62a5b1..0c4a96efed 100644 --- a/core/rid.h +++ b/core/rid.h @@ -66,6 +66,7 @@ public: return _id != p_rid._id; } _FORCE_INLINE_ bool is_valid() const { return _id != 0; } + _FORCE_INLINE_ bool is_null() const { return _id == 0; } _FORCE_INLINE_ uint64_t get_id() const { return _id; } -- cgit v1.2.3