From: Helge Norberg Date: Fri, 17 Feb 2017 15:32:59 +0000 (+0100) Subject: [scene] Fixed double evaluation of expressions X-Git-Tag: 2.1.0_Beta2~83 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5a66feb95182b62ac3ec176ca9b05a29181bcd06;hp=09c4f00b8dc5e2f9977f94326c9efd7a67e5d006;p=casparcg [scene] Fixed double evaluation of expressions --- diff --git a/core/producer/binding.h b/core/producer/binding.h index c05934211..17c9cff19 100644 --- a/core/producer/binding.h +++ b/core/producer/binding.h @@ -148,14 +148,16 @@ private: { auto new_value = expression_(); + evaluated_ = true; + if (new_value != value_) { value_ = new_value; on_change(); } } - - evaluated_ = true; + else + evaluated_ = true; } using impl_base::on_change;