From 5a66feb95182b62ac3ec176ca9b05a29181bcd06 Mon Sep 17 00:00:00 2001 From: Helge Norberg Date: Fri, 17 Feb 2017 16:32:59 +0100 Subject: [PATCH 1/1] [scene] Fixed double evaluation of expressions --- core/producer/binding.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.39.2