Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-06-15 11:26:10 +0300
committerJacques Lucke <jacques@blender.org>2021-06-15 11:26:31 +0300
commit9cd2e80d5d7a3a3f0ece3809a17f4225ae960214 (patch)
tree75e1ae9af46e0a18c0c7b0e0b38cfc3413e0f8e7 /source/blender/functions
parent462bd81399375f8a91b9fd550bab741d4f8ba949 (diff)
Fix: wrong size check
This fixes a bad mistake by myself. Thanks Lukas Tönne for telling me.
Diffstat (limited to 'source/blender/functions')
-rw-r--r--source/blender/functions/FN_generic_virtual_array.hh2
1 files changed, 1 insertions, 1 deletions
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