浏览代码

Do not cancel event if no need to cancel it. Fixes problem with GUI in 3D.

Juan Linietsky 7 年之前
父节点
当前提交
7459ade298
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      scene/main/scene_tree.cpp

+ 2 - 2
scene/main/scene_tree.cpp

@@ -418,12 +418,12 @@ void SceneTree::input_event(const Ref<InputEvent> &p_event) {
 
 	if (!input_handled) {
 		call_group_flags(GROUP_CALL_REALTIME, "_viewports", "_vp_unhandled_input", ev); //special one for GUI, as controls use their own process check
-		input_handled = true;
 		_flush_ugc();
+		//		input_handled = true; - no reason to set this as handled
 		root_lock--;
 		//MessageQueue::get_singleton()->flush(); //flushing here causes UI and other places slowness
 	} else {
-		input_handled = true;
+		//		input_handled = true; - no reason to set this as handled
 		root_lock--;
 	}