mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
thread can't rename itself on initialization :(
This commit is contained in:
@@ -1883,11 +1883,12 @@ void _Thread::_start_func(void *ud) {
|
|||||||
Variant::CallError ce;
|
Variant::CallError ce;
|
||||||
const Variant* arg[1]={&t->userdata};
|
const Variant* arg[1]={&t->userdata};
|
||||||
|
|
||||||
|
// we don't know our thread pointer yet :(
|
||||||
if (t->name == "") {
|
if (t->name == "") {
|
||||||
// come up with a better name using maybe the filename on the Script?
|
// 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 {
|
} 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);
|
t->ret=t->target_instance->call(t->target_method,arg,1,ce);
|
||||||
|
|||||||
Reference in New Issue
Block a user