summaryrefslogtreecommitdiff
path: root/editor/inspector_dock.cpp
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2018-05-28 16:52:28 +0100
committerPaulb23 <p_batty@hotmail.co.uk>2018-07-22 11:55:56 +0100
commit8ff747171f019aa1004db2a6aa37eb51ae932928 (patch)
treed90ee983f93b895a73f63a70a4afd22c9bb5c3ea /editor/inspector_dock.cpp
parent765d6752bb6ae59d0b19d0d2b602ef2fcb98385b (diff)
Allow opening and editing of any utf_8 file in script editor
Diffstat (limited to 'editor/inspector_dock.cpp')
-rw-r--r--editor/inspector_dock.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/inspector_dock.cpp b/editor/inspector_dock.cpp
index 0d0b12c911..43baabe2f5 100644
--- a/editor/inspector_dock.cpp
+++ b/editor/inspector_dock.cpp
@@ -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."));