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

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to