diff options
Diffstat (limited to 'editor/editor_node.h')
| -rw-r--r-- | editor/editor_node.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/editor/editor_node.h b/editor/editor_node.h index a0f4d7db7c..dfe3d91c07 100644 --- a/editor/editor_node.h +++ b/editor/editor_node.h @@ -547,8 +547,9 @@ private: static void _dependency_error_report(void *ud, const String &p_path, const String &p_dep, const String &p_type) { EditorNode *en = (EditorNode *)ud; - if (!en->dependency_errors.has(p_path)) + if (!en->dependency_errors.has(p_path)) { en->dependency_errors[p_path] = Set<String>(); + } en->dependency_errors[p_path].insert(p_dep + "::" + p_type); } @@ -801,10 +802,11 @@ public: static void progress_end_task_bg(const String &p_task); void save_scene_to_path(String p_file, bool p_with_preview = true) { - if (p_with_preview) + if (p_with_preview) { _save_scene_with_preview(p_file); - else + } else { _save_scene(p_file); + } } bool is_scene_in_use(const String &p_path); |
