summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-05 15:57:50 +0200
committerGitHub <noreply@github.com>2022-05-05 15:57:50 +0200
commit71e41eb395319cc521c2e814126fcc2a5a8034d6 (patch)
tree742b044d9f2ba74f06536aba1203d99cd5e5de86 /editor
parentf10f2a723290ff2c0647b12a8e3a73086e2ac4c4 (diff)
parent0a57f964a357976e023b638e872397ba94123776 (diff)
Merge pull request #60597 from reduz/missing-node-resource-placeholders
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp1
-rw-r--r--editor/icons/MissingNode.svg1
-rw-r--r--editor/icons/MissingResource.svg1
3 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index b6f1a89e2f..934948ac9e 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -5896,6 +5896,7 @@ EditorNode::EditorNode() {
SceneState::set_disable_placeholders(true);
ResourceLoader::clear_translation_remaps(); // Using no remaps if in editor.
ResourceLoader::clear_path_remaps();
+ ResourceLoader::set_create_missing_resources_if_class_unavailable(true);
Input *id = Input::get_singleton();
diff --git a/editor/icons/MissingNode.svg b/editor/icons/MissingNode.svg
new file mode 100644
index 0000000000..582b244614
--- /dev/null
+++ b/editor/icons/MissingNode.svg
@@ -0,0 +1 @@
+<svg height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="m2.9902 1.9902a1.0001 1.0001 0 0 0 -.69727 1.7168l4.293 4.293-4.293 4.293a1.0001 1.0001 0 1 0 1.4141 1.4141l4.293-4.293 4.293 4.293a1.0001 1.0001 0 1 0 1.4141-1.4141l-4.293-4.293 4.293-4.293a1.0001 1.0001 0 0 0 -.72656-1.7148 1.0001 1.0001 0 0 0 -.6875.30078l-4.293 4.293-4.293-4.293a1.0001 1.0001 0 0 0 -.7168-.30273z" fill="#ff5f5f" fill-rule="evenodd"/></svg>
diff --git a/editor/icons/MissingResource.svg b/editor/icons/MissingResource.svg
new file mode 100644
index 0000000000..582b244614
--- /dev/null
+++ b/editor/icons/MissingResource.svg
@@ -0,0 +1 @@
+<svg height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="m2.9902 1.9902a1.0001 1.0001 0 0 0 -.69727 1.7168l4.293 4.293-4.293 4.293a1.0001 1.0001 0 1 0 1.4141 1.4141l4.293-4.293 4.293 4.293a1.0001 1.0001 0 1 0 1.4141-1.4141l-4.293-4.293 4.293-4.293a1.0001 1.0001 0 0 0 -.72656-1.7148 1.0001 1.0001 0 0 0 -.6875.30078l-4.293 4.293-4.293-4.293a1.0001 1.0001 0 0 0 -.7168-.30273z" fill="#ff5f5f" fill-rule="evenodd"/></svg>