Fix different separations across different code editors
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
#include "editor/settings/editor_settings.h"
|
||||
#include "editor/themes/editor_scale.h"
|
||||
#include "editor/themes/editor_theme_manager.h"
|
||||
#include "scene/gui/separator.h"
|
||||
#include "scene/gui/split_container.h"
|
||||
#include "servers/rendering/shader_preprocessor.h"
|
||||
#include "servers/rendering/shader_types.h"
|
||||
@@ -1185,7 +1184,6 @@ TextShaderEditor::TextShaderEditor() {
|
||||
code_editor->connect("script_validated", callable_mp(this, &TextShaderEditor::_script_validated));
|
||||
|
||||
code_editor->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||
code_editor->add_theme_constant_override("separation", 0);
|
||||
code_editor->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
|
||||
code_editor->connect("show_warnings_panel", callable_mp(this, &TextShaderEditor::_show_warnings_panel));
|
||||
|
||||
@@ -174,8 +174,8 @@ class TextShaderEditor : public ShaderEditor {
|
||||
|
||||
uint32_t dependencies_version = 0xFFFFFFFF;
|
||||
|
||||
bool trim_trailing_whitespace_on_save;
|
||||
bool trim_final_newlines_on_save;
|
||||
bool trim_trailing_whitespace_on_save = false;
|
||||
bool trim_final_newlines_on_save = false;
|
||||
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
|
||||
Reference in New Issue
Block a user