Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SaracenOne committed Feb 14, 2021
1 parent 2961cb3 commit c85b1dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion editor/plugins/shader_editor_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class ShaderEditor : public PanelContainer {

public:
void apply_shaders();

static void refresh_shader_dependencies();

void ensure_select_current();
Expand Down
14 changes: 7 additions & 7 deletions servers/visual/shader_language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@

#include "servers/visual/shader_language.h"
#include "core/engine.h"
#include "core/io/resource_loader.h"
#include "core/os/os.h"
#include "core/print_string.h"
#include "servers/visual_server.h"
#include "core/io/resource_loader.h"
#include "servers/visual/shader_language.h"
#include "servers/visual/rasterizer.h"
#include "scene/resources/shader.h"
#include "servers/visual/rasterizer.h"
#include "servers/visual/shader_language.h"
#include "servers/visual_server.h"

static bool _is_text_char(CharType c) {

Expand Down Expand Up @@ -4879,7 +4879,7 @@ Error ShaderLanguage::_parse_shader(const Map<StringName, FunctionInfo> &p_funct

int texture_uniforms = 0;
int uniforms = 0;

Set<String> includes;
int include_depth = 0;

Expand Down Expand Up @@ -4907,9 +4907,9 @@ Error ShaderLanguage::_parse_shader(const Map<StringName, FunctionInfo> &p_funct
return ERR_PARSE_ERROR;
}

String replacement = String("import \"") + tk.text + String("\"");
String replacement = String("import \"") + tk.text + String("\"");
String empty;
for(int i = 0; i < replacement.size(); i++) {
for (int i = 0; i < replacement.size(); i++) {
empty += " ";
}
code = code.replace_first(replacement, empty);
Expand Down

0 comments on commit c85b1dc

Please sign in to comment.