summaryrefslogtreecommitdiff
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorChaosus <chaosus89@gmail.com>2018-08-13 18:04:38 +0300
committerChaosus <chaosus89@gmail.com>2018-08-13 21:52:38 +0300
commit94cf2133d54265ebeef272bb1c7c2e4c32fe730f (patch)
treef8a942803e47dfb86dd4a8daa356dbbe388e6d91 /editor/editor_node.cpp
parentb68f186c46c5df260eff9ea70ef2802ee07d251c (diff)
Add warning color to output log
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 81b7a66361..22e823af86 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -4566,7 +4566,7 @@ static Node *_resource_get_edited_scene() {
void EditorNode::_print_handler(void *p_this, const String &p_string, bool p_error) {
EditorNode *en = (EditorNode *)p_this;
- en->log->add_message(p_string, p_error);
+ en->log->add_message(p_string, p_error ? EditorLog::MSG_TYPE_ERROR : EditorLog::MSG_TYPE_STD);
}
EditorNode::EditorNode() {