From c7e4527a88b90062e1d5fdea50c1b85cea3c8c6c Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 20 Aug 2018 13:38:18 -0300 Subject: Massive rewrite to AnimationTree. Many APIs changed in order to: -Reuse resources -Expose properties in AnimationTree --- core/object.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/object.h') diff --git a/core/object.h b/core/object.h index 806cf8160c..52c9c509ab 100644 --- a/core/object.h +++ b/core/object.h @@ -392,7 +392,8 @@ public: CONNECT_DEFERRED = 1, CONNECT_PERSIST = 2, // hint for scene to save this connection - CONNECT_ONESHOT = 4 + CONNECT_ONESHOT = 4, + CONNECT_REFERENCE_COUNTED = 8, }; struct Connection { @@ -443,8 +444,10 @@ private: struct Slot { + int reference_count; Connection conn; List::Element *cE; + Slot() { reference_count = 0; } }; MethodInfo user; -- cgit v1.2.3