added support for 'pre_' variations

This commit is contained in:
Erik Reckase 2011-06-20 14:08:19 -06:00
parent 449f7d9374
commit f14d56558c

View File

@ -37,10 +37,21 @@ void apply_xf{{xfid}}(float *ix, float *iy, float *icolor, mwc_st *rctx) {
oy = 0; oy = 0;
{{for v in xform.vars}} {{for v in xform.vars}}
{{if variations.var_nos[v].startswith('pre_')}}
if (1) { if (1) {
float w = {{px.get('xf.var[%d]' % v)}}; float w = {{px.get('xf.var[%d]' % v)}};
{{variations.var_code[variations.var_nos[v]].substitute(locals())}} {{variations.var_code[variations.var_nos[v]].substitute(locals())}}
} }
{{endif}}
{{endfor}}
{{for v in xform.vars}}
{{if not variations.var_nos[v].startswith('pre_')}}
if (1) {
float w = {{px.get('xf.var[%d]' % v)}};
{{variations.var_code[variations.var_nos[v]].substitute(locals())}}
}
{{endif}}
{{endfor}} {{endfor}}
*ix = ox; *ix = ox;