Fix for crash when using particle emission with clump/roughness curves
in a smoke sim. This interaction between sims is totally stupid and must be recoded entirely in some utopian future.
This commit is contained in:
parent
a180c8e2ed
commit
8463e6cb41
|
@ -66,6 +66,7 @@
|
|||
#include "BKE_bvhutils.h"
|
||||
#include "BKE_cdderivedmesh.h"
|
||||
#include "BKE_collision.h"
|
||||
#include "BKE_colortools.h"
|
||||
#include "BKE_constraint.h"
|
||||
#include "BKE_customdata.h"
|
||||
#include "BKE_deform.h"
|
||||
|
@ -1239,6 +1240,12 @@ static void emit_from_particles(Object *flow_ob, SmokeDomainSettings *sds, Smoke
|
|||
sim.ob = flow_ob;
|
||||
sim.psys = psys;
|
||||
|
||||
/* prepare curvemapping tables */
|
||||
if ((psys->part->child_flag & PART_CHILD_USE_CLUMP_CURVE) && psys->part->clumpcurve)
|
||||
curvemapping_changed_all(psys->part->clumpcurve);
|
||||
if ((psys->part->child_flag & PART_CHILD_USE_ROUGH_CURVE) && psys->part->roughcurve)
|
||||
curvemapping_changed_all(psys->part->roughcurve);
|
||||
|
||||
/* initialize particle cache */
|
||||
if (psys->part->type == PART_HAIR) {
|
||||
// TODO: PART_HAIR not supported whatsoever
|
||||
|
|
Loading…
Reference in New Issue