Allow opening and editing of any utf_8 file in script editor
This commit is contained in:
@ -140,6 +140,7 @@ void InspectorDock::_load_resource(const String &p_type) {
|
||||
|
||||
void InspectorDock::_resource_file_selected(String p_file) {
|
||||
RES res = ResourceLoader::load(p_file);
|
||||
|
||||
if (res.is_null()) {
|
||||
warning_dialog->get_ok()->set_text("Ugh");
|
||||
warning_dialog->set_text(TTR("Failed to load resource."));
|
||||
|
||||
Reference in New Issue
Block a user