From 5111a0f05ce42424196beb1e82b2d0da10776e47 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 16 Oct 2011 13:42:37 -0400 Subject: [PATCH] Eliminate needless pre_ var separation --- cuburn/code/iter.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cuburn/code/iter.py b/cuburn/code/iter.py index 886e215..fb837c6 100644 --- a/cuburn/code/iter.py +++ b/cuburn/code/iter.py @@ -112,22 +112,13 @@ void apply_xf{{xfid}}(float &ox, float &oy, float &color, mwc_st &rctx) { oy = 0; {{for v in xform.vars}} - {{if 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}} - {{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}} float csp = {{px.get('xf.color_speed')}}; color = color * (1.0f - csp) + {{px.get('xf.color')}} * csp;