summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-21 20:51:41 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-21 20:51:41 -0300
commit3edf66477a49696ae82074b4675aff818dda68fe (patch)
treeba1bad6d0e9b22648ce574a2380d051e243537be /core
parentd57b09e47bb229b164ac34a408207882635b541b (diff)
Fixed error using the same atlas rect for all images, closes #4139
Diffstat (limited to 'core')
-rw-r--r--core/script_language.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/script_language.h b/core/script_language.h
index ceaa862463..bde4d619ab 100644
--- a/core/script_language.h
+++ b/core/script_language.h
@@ -129,6 +129,10 @@ public:
virtual void notification(int p_notification)=0;
+ //this is used by script languages that keep a reference counter of their own
+ //you can make make Ref<> not die when it reaches zero, so deleting the reference
+ //depends entirely from the script
+
virtual void refcount_incremented() {}
virtual bool refcount_decremented() { return true; } //return true if it can die