diff options
| author | Juan Linietsky <reduzio@gmail.com> | 2018-08-20 13:38:18 -0300 |
|---|---|---|
| committer | Juan Linietsky <reduzio@gmail.com> | 2018-08-20 13:39:16 -0300 |
| commit | c7e4527a88b90062e1d5fdea50c1b85cea3c8c6c (patch) | |
| tree | ee365bb27589b1e3646cee42fa1594038a25bfe9 /core/object.h | |
| parent | 1b66b08fdb3adc838810ce79823c70ac391c8a21 (diff) | |
| download | redot-engine-c7e4527a88b90062e1d5fdea50c1b85cea3c8c6c.tar.gz | |
Massive rewrite to AnimationTree. Many APIs changed in order to:
-Reuse resources
-Expose properties in AnimationTree
Diffstat (limited to 'core/object.h')
| -rw-r--r-- | core/object.h | 5 |
1 files changed, 4 insertions, 1 deletions
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<Connection>::Element *cE; + Slot() { reference_count = 0; } }; MethodInfo user; |
