From: Helge Norberg Date: Mon, 13 Feb 2017 20:47:58 +0000 (+0100) Subject: [scene_producer] Reenabled immediate evaluation on new binding X-Git-Tag: 2.1.0_Beta2~90 X-Git-Url: https://git.sesse.net/?p=casparcg;a=commitdiff_plain;h=578ef643b95a96d64848105c465ccf180b7cf6e6 [scene_producer] Reenabled immediate evaluation on new binding --- diff --git a/core/producer/binding.h b/core/producer/binding.h index 6912efe2d..71e31f203 100644 --- a/core/producer/binding.h +++ b/core/producer/binding.h @@ -69,9 +69,9 @@ struct impl_base : std::enable_shared_from_this { if (dependency == other) return true; - + if (dependency->depends_on(other)) - return true; + return true; } return false; @@ -177,7 +177,7 @@ private: unbind(); depend_on(other); expression_ = [other]{ return other->get(); }; - //evaluate(); + evaluate(); } void unbind() @@ -545,7 +545,7 @@ public: std::shared_ptr subscription(new char); on_change(subscription, listener); - + return subscription; } private: @@ -600,7 +600,7 @@ public: binding result([condition, true_result, false_result]() { - return condition.get() ? true_result.get() : false_result.get(); + return condition.get() ? true_result.get() : false_result.get(); }); result.depend_on(condition); @@ -647,7 +647,7 @@ binding add_tween( const std::wstring& easing) { tweener tween(easing); - + double start_val = to_tween.as().get(); double destination_val = static_cast(destination_value); double start_time = counter.as().get();