[Bf-blender-cvs] [93f21ebb13f] master: Fluid: Update Mantaflow source files

Sebastián Barschkis noreply at git.blender.org
Thu Jul 16 18:04:52 CEST 2020


Commit: 93f21ebb13f0a63a469e506bd08797fbdf4079b7
Author: Sebastián Barschkis
Date:   Thu Jul 16 18:01:08 2020 +0200
Branches: master
https://developer.blender.org/rB93f21ebb13f0a63a469e506bd08797fbdf4079b7

Fluid: Update Mantaflow source files

Includes cleanup that resolves a -Wunused-but-set-variable warning.

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

M	extern/mantaflow/preprocessed/mesh.cpp

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

diff --git a/extern/mantaflow/preprocessed/mesh.cpp b/extern/mantaflow/preprocessed/mesh.cpp
index c99d621d2bd..7a27b88ece7 100644
--- a/extern/mantaflow/preprocessed/mesh.cpp
+++ b/extern/mantaflow/preprocessed/mesh.cpp
@@ -1371,11 +1371,11 @@ void Mesh::updateDataFields()
   for (size_t i = 0; i < mNodes.size(); ++i) {
     Vec3 pos = mNodes[i].pos;
     for (IndexInt md = 0; md < (IndexInt)mMdataReal.size(); ++md)
-      mMdataReal[md]->initNewValue(i, mNodes[i].pos);
+      mMdataReal[md]->initNewValue(i, pos);
     for (IndexInt md = 0; md < (IndexInt)mMdataVec3.size(); ++md)
-      mMdataVec3[md]->initNewValue(i, mNodes[i].pos);
+      mMdataVec3[md]->initNewValue(i, pos);
     for (IndexInt md = 0; md < (IndexInt)mMdataInt.size(); ++md)
-      mMdataInt[md]->initNewValue(i, mNodes[i].pos);
+      mMdataInt[md]->initNewValue(i, pos);
   }
 }



More information about the Bf-blender-cvs mailing list