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:
Bastien Montagne
2018-08-13 11:57:18 +02:00
parent 9d59851ca3
commit 844b40b0c1

View File

@@ -737,6 +737,10 @@ static void do_twist(const ParticleChildModifierContext *modifier_ctx,
ParticleTexture *ptex = modifier_ctx->ptex;
ParticleSettings *part = sim->psys->part;
/* Early output checks. */
if (modifier_ctx->parent_keys == NULL) {
/* Cannot get axis of rotation... */
return;
}
if (part->childtype != PART_CHILD_PARTICLES) {
/* Interpolated children behave weird with twist. */
return;