From 9cd2e80d5d7a3a3f0ece3809a17f4225ae960214 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 15 Jun 2021 10:26:10 +0200 Subject: Fix: wrong size check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes a bad mistake by myself. Thanks Lukas Tönne for telling me. --- source/blender/functions/FN_generic_virtual_array.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/functions/FN_generic_virtual_array.hh b/source/blender/functions/FN_generic_virtual_array.hh index d530d10b3c8..5fdc7c3f337 100644 --- a/source/blender/functions/FN_generic_virtual_array.hh +++ b/source/blender/functions/FN_generic_virtual_array.hh @@ -66,7 +66,7 @@ class GVArray { bool is_empty() const { - return size_; + return size_ == 0; } /* Copies the value at the given index into the provided storage. The `r_value` pointer is -- cgit v1.2.3