[Bf-blender-cvs] [a8ac44e74fa] fluid-mantaflow: setting solver res here is obsolete

Sebastián Barschkis noreply at git.blender.org
Thu Jun 15 13:54:04 CEST 2017


Commit: a8ac44e74fa1853502f85fc2fb0ff4af940647d1
Author: Sebastián Barschkis
Date:   Wed Jun 14 21:28:41 2017 +0200
Branches: fluid-mantaflow
https://developer.blender.org/rBa8ac44e74fa1853502f85fc2fb0ff4af940647d1

setting solver res here is obsolete

no need to set this explicitly. solver only threw expection when loading blend files created with vanilla blender. versioning support will handle this in the future.

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

M	intern/mantaflow/intern/FLUID.cpp

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

diff --git a/intern/mantaflow/intern/FLUID.cpp b/intern/mantaflow/intern/FLUID.cpp
index 49578b44293..f38ad9168e9 100644
--- a/intern/mantaflow/intern/FLUID.cpp
+++ b/intern/mantaflow/intern/FLUID.cpp
@@ -57,7 +57,6 @@ FLUID::FLUID(int *res, SmokeModifierData *smd) : mCurrentID(++solverID)
 		std::cout << "FLUID: " << mCurrentID << std::endl;
 
 	smd->domain->fluid = this;
-	smd->domain->manta_solver_res = 3; // Why do we need to set this explicitly? When not set, fluidsolver throws exception (occurs when loading a new .blend file)
 	
 	mUsingHeat    = smd->domain->active_fields & SM_ACTIVE_HEAT;
 	mUsingFire    = smd->domain->active_fields & SM_ACTIVE_FIRE;




More information about the Bf-blender-cvs mailing list