소스 검색

Fix visual shader editor popups not using editor scale.

Pāvels Nadtočajevs 5 달 전
부모
커밋
9870c8ca68
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      editor/plugins/visual_shader_editor_plugin.cpp

+ 1 - 1
editor/plugins/visual_shader_editor_plugin.cpp

@@ -3315,7 +3315,7 @@ void VisualShaderEditor::_edit_port_default_input(Object *p_button, int p_node,
 			popup_pref_size.width = 180;
 			break;
 	}
-	property_editor_popup->set_min_size(popup_pref_size);
+	property_editor_popup->set_min_size(popup_pref_size * EDSCALE);
 
 	property_editor->set_object_and_property(edited_property_holder.ptr(), "edited_property");
 	property_editor->update_property();