summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-06-19 13:10:23 +0200
committerGitHub <noreply@github.com>2016-06-19 13:10:23 +0200
commite76f744c36234b5b4043c68c7d20a3d2e22d7a8c (patch)
tree9b049c7657e264063fb57419efe0137a9a72a10e /tools/editor
parentdf202127e3096c7e8b5188c4d29f38b03cae1658 (diff)
parent422fac5066b704cb2bf251000869b5b94e188c85 (diff)
Merge pull request #5283 from djrm/remove_prints
Removed lots of prints
Diffstat (limited to 'tools/editor')
-rw-r--r--tools/editor/editor_node.cpp6
-rw-r--r--tools/editor/editor_settings.cpp5
-rw-r--r--tools/editor/plugins/script_editor_plugin.cpp4
3 files changed, 1 insertions, 14 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp
index 3605feb819..dd50b720f7 100644
--- a/tools/editor/editor_node.cpp
+++ b/tools/editor/editor_node.cpp
@@ -1158,7 +1158,6 @@ void EditorNode::_dialog_action(String p_file) {
} break;
case FILE_RUN_SCRIPT: {
- print_line("RUN: "+p_file);
Ref<Script> scr = ResourceLoader::load(p_file,"Script",true);
if (scr.is_null()) {
add_io_error("Script Failed to Load:\n"+p_file);
@@ -1302,7 +1301,6 @@ void EditorNode::_dialog_action(String p_file) {
ret = unzGoToFirstFile(pkg);
EditorProgress p("ltask",TTR("Loading Export Templates"),fc);
- print_line("BEGIN IMPORT");
fc=0;
@@ -1332,7 +1330,6 @@ void EditorNode::_dialog_action(String p_file) {
file=file.get_file();
p.step(TTR("Importing:")+" "+file,fc);
- print_line("IMPORT "+file);
FileAccess *f = FileAccess::open(EditorSettings::get_singleton()->get_settings_path()+"/templates/"+file,FileAccess::WRITE);
@@ -3551,7 +3548,6 @@ Error EditorNode::load_scene(const String& p_scene, bool p_ignore_broken_deps,bo
load_errors->clear();
String lpath = Globals::get_singleton()->localize_path(p_scene);
- print_line("LOCAL PATH: "+lpath+" from "+p_scene);
if (!lpath.begins_with("res://")) {
current_option=-1;
@@ -4198,7 +4194,6 @@ void EditorNode::_dock_select_input(const InputEvent& p_input) {
dock_slot[dock_popup_selected]->set_current_tab(0);
}
- print_line("performing reparent");
dock_slot[nrect]->add_child(dock);
dock_popup_selected=nrect;
dock_slot[nrect]->set_current_tab(dock_slot[nrect]->get_tab_count()-1);
@@ -5172,7 +5167,6 @@ EditorNode::EditorNode() {
EditorSettings::create();
{
int dpi_mode = EditorSettings::get_singleton()->get("global/hidpi_mode");
- print_line("DPI MODE: "+itos(dpi_mode));
if (dpi_mode==0) {
editor_set_hidpi( OS::get_singleton()->get_screen_dpi(0) > 150 );
} else if (dpi_mode==2) {
diff --git a/tools/editor/editor_settings.cpp b/tools/editor/editor_settings.cpp
index 15c67cb548..0fffaca782 100644
--- a/tools/editor/editor_settings.cpp
+++ b/tools/editor/editor_settings.cpp
@@ -63,7 +63,6 @@ bool EditorSettings::_set(const StringName& p_name, const Variant& p_value) {
Array arr=p_value;
ERR_FAIL_COND_V(arr.size() && arr.size()&1,true);
- print_line("shortcuts: "+Variant(arr).get_construct_string());
for(int i=0;i<arr.size();i+=2) {
String name = arr[i];
@@ -399,14 +398,11 @@ String EditorSettings::get_settings_path() const {
void EditorSettings::setup_language() {
String lang = get("global/editor_language");
- print_line("LANG IS "+lang);
if (lang=="en")
return; //none to do
for(int i=0;i<translations.size();i++) {
- print_line("TESTING "+translations[i]->get_locale());
if (translations[i]->get_locale()==lang) {
- print_line("ok translation");
TranslationServer::get_singleton()->set_tool_translation(translations[i]);
break;
}
@@ -711,7 +707,6 @@ void EditorSettings::notify_changes() {
sml = OS::get_singleton()->get_main_loop()->cast_to<SceneTree>();
if (!sml) {
- print_line("not SML");
return;
}
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp
index a313b0053a..f459bf483a 100644
--- a/tools/editor/plugins/script_editor_plugin.cpp
+++ b/tools/editor/plugins/script_editor_plugin.cpp
@@ -2201,7 +2201,7 @@ void ScriptEditor::_editor_stop() {
void ScriptEditor::_add_callback(Object *p_obj, const String& p_function, const StringArray& p_args) {
- print_line("add callback! hohoho");
+ //print_line("add callback! hohoho"); kinda sad to remove this
ERR_FAIL_COND(!p_obj);
Ref<Script> script = p_obj->get_script();
ERR_FAIL_COND( !script.is_valid() );
@@ -2243,7 +2243,6 @@ void ScriptEditor::_add_callback(Object *p_obj, const String& p_function, const
void ScriptEditor::_editor_settings_changed() {
- print_line("settings changed");
trim_trailing_whitespace_on_save = EditorSettings::get_singleton()->get("text_editor/trim_trailing_whitespace_on_save");
float autosave_time = EditorSettings::get_singleton()->get("text_editor/autosave_interval_secs");
if (autosave_time>0) {
@@ -2284,7 +2283,6 @@ void ScriptEditor::_editor_settings_changed() {
void ScriptEditor::_autosave_scripts() {
- print_line("autosaving");
save_all_scripts();
}