[Bf-blender-cvs] [0789f61373d] master: Cleanup: remove warnings

Jacques Lucke noreply at git.blender.org
Fri Nov 26 17:32:21 CET 2021


Commit: 0789f61373de962dce1874b8577a4e54c21e587a
Author: Jacques Lucke
Date:   Fri Nov 26 17:32:09 2021 +0100
Branches: master
https://developer.blender.org/rB0789f61373de962dce1874b8577a4e54c21e587a

Cleanup: remove warnings

This assert was producing warning in debug builds because
it was never hit under some circumstances.

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

M	source/blender/blenlib/BLI_virtual_array.hh

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

diff --git a/source/blender/blenlib/BLI_virtual_array.hh b/source/blender/blenlib/BLI_virtual_array.hh
index 85e9cb25b3f..96128fc5c32 100644
--- a/source/blender/blenlib/BLI_virtual_array.hh
+++ b/source/blender/blenlib/BLI_virtual_array.hh
@@ -423,7 +423,6 @@ class VArrayImpl_For_DerivedSpan final : public VMutableArrayImpl<ElemT> {
 
   void set(const int64_t index, ElemT value) override
   {
-    BLI_assert(SetFunc != nullptr);
     SetFunc(data_[index], std::move(value));
   }



More information about the Bf-blender-cvs mailing list