[Bf-blender-cvs] [9cd2e80d5d7] master: Fix: wrong size check

Jacques Lucke noreply at git.blender.org
Tue Jun 15 10:26:53 CEST 2021


Commit: 9cd2e80d5d7a3a3f0ece3809a17f4225ae960214
Author: Jacques Lucke
Date:   Tue Jun 15 10:26:10 2021 +0200
Branches: master
https://developer.blender.org/rB9cd2e80d5d7a3a3f0ece3809a17f4225ae960214

Fix: wrong size check

This fixes a bad mistake by myself. Thanks Lukas Tönne for telling me.

===================================================================

M	source/blender/functions/FN_generic_virtual_array.hh

===================================================================

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



More information about the Bf-blender-cvs mailing list