Fluid: Fix for smoke domain geometry object with adaptive domain enabled
The smoke mesh geometry always needs to be updated when using the adaptive domain.
This commit is contained in:
@@ -3826,7 +3826,8 @@ struct Mesh *BKE_fluid_modifier_do(
|
|||||||
FluidDomainSettings *mds = mmd->domain;
|
FluidDomainSettings *mds = mmd->domain;
|
||||||
|
|
||||||
/* Always update viewport in cache replay mode. */
|
/* Always update viewport in cache replay mode. */
|
||||||
if (mds->cache_type == FLUID_DOMAIN_CACHE_REPLAY) {
|
if (mds->cache_type == FLUID_DOMAIN_CACHE_REPLAY ||
|
||||||
|
mds->flags & FLUID_DOMAIN_USE_ADAPTIVE_DOMAIN) {
|
||||||
needs_viewport_update = true;
|
needs_viewport_update = true;
|
||||||
}
|
}
|
||||||
/* In other cache modes, only update the viewport when no bake is going on. */
|
/* In other cache modes, only update the viewport when no bake is going on. */
|
||||||
|
|||||||
Reference in New Issue
Block a user