浏览代码

Do not show node view and 2d view at once on android and ios

luboslenco 3 周之前
父节点
当前提交
36949f5682
共有 1 个文件被更改,包括 20 次插入0 次删除
  1. 20 0
      base/sources/ts/ui_base.ts

+ 20 - 0
base/sources/ts/ui_base.ts

@@ -1433,6 +1433,12 @@ function ui_base_show_material_nodes() {
 	ui_nodes_show = !ui_nodes_show;
 	///end
 
+	///if (arm_ios || arm_android)
+	if (ui_view2d_show) {
+		ui_view2d_show = false;
+	}
+	///end
+
 	base_resize();
 }
 
@@ -1441,6 +1447,13 @@ function ui_base_show_brush_nodes() {
 	ui_end_input();
 	ui_nodes_show = !ui_nodes_show || ui_nodes_canvas_type != canvas_type_t.BRUSH;
 	ui_nodes_canvas_type = canvas_type_t.BRUSH;
+
+	///if (arm_ios || arm_android)
+	if (ui_view2d_show) {
+		ui_view2d_show = false;
+	}
+	///end
+
 	base_resize();
 }
 
@@ -1455,6 +1468,13 @@ function ui_base_show_2d_view(type: view_2d_type_t) {
 	}
 	ui_view2d_type = type;
 	ui_view2d_hwnd.redraws = 2;
+
+	///if (arm_ios || arm_android)
+	if (ui_nodes_show) {
+		ui_nodes_show = false;
+	}
+	///end
+
 	base_resize();
 }