Merge pull request #82358 from jsjtxietian/fix-can-not-set-process-priority-of-node-in-editor
Fix can not set process priority of node in certain cases
This commit is contained in:
commit
008b08b5fb
@ -968,7 +968,11 @@ void Node::set_process_priority(int p_priority) {
|
||||
|
||||
if (_is_any_processing()) {
|
||||
_remove_from_process_thread_group();
|
||||
data.process_priority = p_priority;
|
||||
}
|
||||
|
||||
data.process_priority = p_priority;
|
||||
|
||||
if (_is_any_processing()) {
|
||||
_add_to_process_thread_group();
|
||||
}
|
||||
}
|
||||
@ -990,7 +994,11 @@ void Node::set_physics_process_priority(int p_priority) {
|
||||
|
||||
if (_is_any_processing()) {
|
||||
_remove_from_process_thread_group();
|
||||
data.physics_process_priority = p_priority;
|
||||
}
|
||||
|
||||
data.physics_process_priority = p_priority;
|
||||
|
||||
if (_is_any_processing()) {
|
||||
_add_to_process_thread_group();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user