소스 검색

Showing anchor icon in editor if control-node is hidden (fixes #9542)

Niko Abeler 8 년 전
부모
커밋
07809c162f
1개의 변경된 파일4개의 추가작업 그리고 7개의 파일을 삭제
  1. 4 7
      editor/plugins/canvas_item_editor_plugin.cpp

+ 4 - 7
editor/plugins/canvas_item_editor_plugin.cpp

@@ -2079,13 +2079,10 @@ void CanvasItemEditor::_notification(int p_what) {
 			}
 		}
 
-		bool show_anchor = all_control && has_control;
-		if (show_anchor != anchor_menu->is_visible()) {
-			if (show_anchor)
-				anchor_menu->show();
-			else
-				anchor_menu->hide();
-		}
+		if (all_control && has_control)
+			anchor_menu->show();
+		else
+			anchor_menu->hide();
 
 		for (Map<ObjectID, BoneList>::Element *E = bone_list.front(); E; E = E->next()) {