Fix T56344: Crash when used Twist for Emitter type of Particles System.
That effect is NOP with emitter particles anyway...
This commit is contained in:
@@ -737,6 +737,10 @@ static void do_twist(const ParticleChildModifierContext *modifier_ctx,
|
|||||||
ParticleTexture *ptex = modifier_ctx->ptex;
|
ParticleTexture *ptex = modifier_ctx->ptex;
|
||||||
ParticleSettings *part = sim->psys->part;
|
ParticleSettings *part = sim->psys->part;
|
||||||
/* Early output checks. */
|
/* Early output checks. */
|
||||||
|
if (modifier_ctx->parent_keys == NULL) {
|
||||||
|
/* Cannot get axis of rotation... */
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (part->childtype != PART_CHILD_PARTICLES) {
|
if (part->childtype != PART_CHILD_PARTICLES) {
|
||||||
/* Interpolated children behave weird with twist. */
|
/* Interpolated children behave weird with twist. */
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user