diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-04-07 21:21:06 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-04-07 21:21:06 -0300 |
commit | 963845eea9794c1e35e536da57cb22b01fd58fa7 (patch) | |
tree | 5d963252f3bc2cb175bfdda91d1369aace97a45b /core/object.cpp | |
parent | 22997294fa87a1346ef4617b887953a356943354 (diff) | |
parent | ef222aea8976d66986e8c05a82e9d6f938a87235 (diff) |
Merge branch 'master' of https://github.com/okamstudio/godot
Diffstat (limited to 'core/object.cpp')
-rw-r--r-- | core/object.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/object.cpp b/core/object.cpp index 2b83f728d1..f71521a0ff 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -1503,6 +1503,8 @@ void Object::_bind_methods() { ObjectTypeDB::bind_method(_MD("XL_MESSAGE","message"),&Object::XL_MESSAGE); ObjectTypeDB::bind_method(_MD("tr","message"),&Object::tr); + ObjectTypeDB::bind_method(_MD("is_queued_for_deletion"),&Object::is_queued_for_deletion); + ADD_SIGNAL( MethodInfo("script_changed")); BIND_VMETHOD( MethodInfo("_notification",PropertyInfo(Variant::INT,"what")) ); @@ -1566,6 +1568,10 @@ void Object::get_translatable_strings(List<String> *p_strings) const { } +bool Object::is_queued_for_deletion() const { + return _is_queued_for_deletion; +} + #ifdef TOOLS_ENABLED void Object::set_edited(bool p_edited) { @@ -1587,6 +1593,7 @@ Object::Object() { _instance_ID=0; _instance_ID = ObjectDB::add_instance(this); _can_translate=true; + _is_queued_for_deletion=false; script_instance=NULL; #ifdef TOOLS_ENABLED |