]> git.sesse.net Git - casparcg/commitdiff
[scene_producer] Reenabled immediate evaluation on new binding
authorHelge Norberg <helge.norberg@svt.se>
Mon, 13 Feb 2017 20:47:58 +0000 (21:47 +0100)
committerHelge Norberg <helge.norberg@svt.se>
Mon, 13 Feb 2017 20:47:58 +0000 (21:47 +0100)
core/producer/binding.h

index 6912efe2d4529e367f7f87bbf0c54ea063955df9..71e31f2035942e76c63336993561ab265b521b73 100644 (file)
@@ -69,9 +69,9 @@ struct impl_base : std::enable_shared_from_this<impl_base>
                {
                        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<void> subscription(new char);
 
                on_change(subscription, listener);
-               
+
                return subscription;
        }
 private:
@@ -600,7 +600,7 @@ public:
 
                binding<T> 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<T> add_tween(
                const std::wstring& easing)
 {
        tweener tween(easing);
-       
+
        double start_val = to_tween.as<double>().get();
        double destination_val = static_cast<double>(destination_value);
        double start_time = counter.as<double>().get();