diff options
author | Ariel Manzur <punto@godotengine.org> | 2015-12-18 09:48:39 -0300 |
---|---|---|
committer | Ariel Manzur <punto@godotengine.org> | 2015-12-18 09:48:39 -0300 |
commit | b989d4f887b6c823850e92ab7c5d47311de59b9d (patch) | |
tree | f588aac48362446d6dbb54d59fa11abc63ce64ce /core | |
parent | 5e0f43d051b6a794a8f5f6385335d441e1a038e3 (diff) |
thread can't rename itself on initialization :(
Diffstat (limited to 'core')
-rw-r--r-- | core/bind/core_bind.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index a5f778deb4..438db5d518 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -1883,11 +1883,12 @@ void _Thread::_start_func(void *ud) { Variant::CallError ce; const Variant* arg[1]={&t->userdata}; + // we don't know our thread pointer yet :( if (t->name == "") { // come up with a better name using maybe the filename on the Script? - t->thread->set_name(t->target_method); + //t->thread->set_name(t->target_method); } else { - t->thread->set_name(t->name); + //t->thread->set_name(t->name); }; t->ret=t->target_instance->call(t->target_method,arg,1,ce); |