From b66b86b05eca3b557700d0249fc3874099056638 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 18 Apr 2015 19:06:58 -0300 Subject: -Fixed post-import script-reload buf, fixes #1683 --- core/reference.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/reference.cpp') diff --git a/core/reference.cpp b/core/reference.cpp index adae07ce3..509e132b5 100644 --- a/core/reference.cpp +++ b/core/reference.cpp @@ -59,6 +59,10 @@ void Reference::_bind_methods() { ObjectTypeDB::bind_method(_MD("unreference"),&Reference::unreference); } +int Reference::reference_get_count() const { + return refcount.get(); +} + void Reference::reference(){ refcount.ref(); -- cgit v1.2.3-70-g09d2