From 5e0e2651815695c969c3b10ef307d53916acade7 Mon Sep 17 00:00:00 2001 From: EReckase Date: Thu, 12 Apr 2018 06:03:15 -0600 Subject: [PATCH] if mult motion elements present, was not using correct vals --- flam3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flam3.c b/flam3.c index fdb6954..6487bb1 100644 --- a/flam3.c +++ b/flam3.c @@ -570,8 +570,8 @@ void apply_motion_parameters(flam3_xform *xf, flam3_xform *addto, double blend) /* Loop over the motion elements and add their contribution to the original vals */ for (i=0; inum_motion; i++) { - freq = mot->motion_freq; - func = mot->motion_func; + freq = mot[i]->motion_freq; + func = mot[i]->motion_func; APPMOT(density); /* Must ensure > 0 after all is applied */ APPMOT(color); /* Must ensure [0,1] after all is applied */