[Bf-blender-cvs] [0d31127d6ca] fluid-mantaflow: Mantaflow: Fixes issue with missing materials

Sebastián Barschkis noreply at git.blender.org
Thu Sep 26 15:07:09 CEST 2019


Commit: 0d31127d6ca252e523891beeb951a46bb0b539a1
Author: Sebastián Barschkis
Date:   Thu Sep 26 15:06:57 2019 +0200
Branches: fluid-mantaflow
https://developer.blender.org/rB0d31127d6ca252e523891beeb951a46bb0b539a1

Mantaflow: Fixes issue with missing materials

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

M	source/blender/blenkernel/intern/manta.c

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

diff --git a/source/blender/blenkernel/intern/manta.c b/source/blender/blenkernel/intern/manta.c
index a2bfca7ac1c..9367ad3f7bf 100644
--- a/source/blender/blenkernel/intern/manta.c
+++ b/source/blender/blenkernel/intern/manta.c
@@ -4109,10 +4109,17 @@ struct Mesh *mantaModifier_do(
   if (!result) {
     result = BKE_mesh_copy_for_eval(me, false);
   }
-  /* XXX This is really not a nice hack, but until root of the problem is understood,
-   * this should be an acceptable workaround I think.
-   * See T58492 for details on the issue. */
-  result->texflag |= ME_AUTOSPACE;
+  else {
+    BKE_mesh_copy_settings(result, me);
+  }
+
+  /* Liquid simulation has a texture space that based on the bounds of the fluid mesh.
+   * This does not seem particularly useful, but it's backwards compatible.
+   *
+   * Smoke simulation needs a texture space relative to the adaptive domain bounds, not the
+   * original mesh. So recompute it at this point in the modifier stack. See T58492. */
+  BKE_mesh_texspace_calc(result);
+
   return result;
 }



More information about the Bf-blender-cvs mailing list