瀏覽代碼

Merge pull request #31122 from Muller-Castro/enhancement

Unnecessary reassignments
Rémi Verschelde 6 年之前
父節點
當前提交
05d58a4e6a
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      scene/main/node.cpp

+ 0 - 4
scene/main/node.cpp

@@ -408,7 +408,6 @@ void Node::set_physics_process(bool p_process) {
 	else
 	else
 		remove_from_group("physics_process");
 		remove_from_group("physics_process");
 
 
-	data.physics_process = p_process;
 	_change_notify("physics_process");
 	_change_notify("physics_process");
 }
 }
 
 
@@ -429,7 +428,6 @@ void Node::set_physics_process_internal(bool p_process_internal) {
 	else
 	else
 		remove_from_group("physics_process_internal");
 		remove_from_group("physics_process_internal");
 
 
-	data.physics_process_internal = p_process_internal;
 	_change_notify("physics_process_internal");
 	_change_notify("physics_process_internal");
 }
 }
 
 
@@ -811,7 +809,6 @@ void Node::set_process(bool p_idle_process) {
 	else
 	else
 		remove_from_group("idle_process");
 		remove_from_group("idle_process");
 
 
-	data.idle_process = p_idle_process;
 	_change_notify("idle_process");
 	_change_notify("idle_process");
 }
 }
 
 
@@ -832,7 +829,6 @@ void Node::set_process_internal(bool p_idle_process_internal) {
 	else
 	else
 		remove_from_group("idle_process_internal");
 		remove_from_group("idle_process_internal");
 
 
-	data.idle_process_internal = p_idle_process_internal;
 	_change_notify("idle_process_internal");
 	_change_notify("idle_process_internal");
 }
 }