Skip to content

Commit

Permalink
Fix bug in OptimizerBlendZero
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwarthog authored and morevnaproject committed Jun 18, 2016
1 parent 47e48b1 commit 016ac25
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -106,7 +106,9 @@ OptimizerBlendZero::run(const RunParams& params) const

bool one_amount = fabsf(blend->amount - 1.f) <= 1e-6;
bool intertsects = valid_a && valid_b
&& etl::intersect(blend->sub_task_a()->get_target_rect(), blend->sub_task_b()->get_target_rect());
&& etl::intersect(
blend->sub_task_a()->get_target_rect() + blend->get_offset_a(),
blend->sub_task_b()->get_target_rect() + blend->get_offset_b() );

if (one_amount && !intertsects)
{
Expand Down

0 comments on commit 016ac25

Please sign in to comment.