Style: Re-apply clang-format over recent invalid additions
This commit is contained in:
parent
7cb6e6b723
commit
a845411454
12 changed files with 18 additions and 18 deletions
|
@ -43,7 +43,7 @@ const char *JSON::tk_name[TK_MAX] = {
|
|||
"EOF",
|
||||
};
|
||||
|
||||
static String _make_indent(const String& p_indent, int p_size) {
|
||||
static String _make_indent(const String &p_indent, int p_size) {
|
||||
|
||||
String indent_text = "";
|
||||
if (!p_indent.empty()) {
|
||||
|
@ -53,7 +53,7 @@ static String _make_indent(const String& p_indent, int p_size) {
|
|||
return indent_text;
|
||||
}
|
||||
|
||||
String JSON::_print_var(const Variant &p_var, const String& p_indent, int p_cur_indent, bool p_sort_keys) {
|
||||
String JSON::_print_var(const Variant &p_var, const String &p_indent, int p_cur_indent, bool p_sort_keys) {
|
||||
|
||||
String colon = ":";
|
||||
String end_statement = "";
|
||||
|
@ -116,7 +116,7 @@ String JSON::_print_var(const Variant &p_var, const String& p_indent, int p_cur_
|
|||
}
|
||||
}
|
||||
|
||||
String JSON::print(const Variant &p_var, const String& p_indent, bool p_sort_keys) {
|
||||
String JSON::print(const Variant &p_var, const String &p_indent, bool p_sort_keys) {
|
||||
|
||||
return _print_var(p_var, p_indent, 0, p_sort_keys);
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ class JSON {
|
|||
|
||||
static const char *tk_name[TK_MAX];
|
||||
|
||||
static String _print_var(const Variant &p_var, const String& p_indent, int p_cur_indent, bool p_sort_keys);
|
||||
static String _print_var(const Variant &p_var, const String &p_indent, int p_cur_indent, bool p_sort_keys);
|
||||
|
||||
static Error _get_token(const CharType *p_str, int &index, int p_len, Token &r_token, int &line, String &r_err_str);
|
||||
static Error _parse_value(Variant &value, Token &token, const CharType *p_str, int &index, int p_len, int &line, String &r_err_str);
|
||||
|
@ -72,7 +72,7 @@ class JSON {
|
|||
static Error _parse_object(Dictionary &object, const CharType *p_str, int &index, int p_len, int &line, String &r_err_str);
|
||||
|
||||
public:
|
||||
static String print(const Variant &p_var, const String& p_indent = "", bool p_sort_keys = true);
|
||||
static String print(const Variant &p_var, const String &p_indent = "", bool p_sort_keys = true);
|
||||
static Error parse(const String &p_json, Variant &r_ret, String &r_err_str, int &r_err_line);
|
||||
};
|
||||
|
||||
|
|
|
@ -202,8 +202,9 @@ class EditorHelpSearch::IncrementalSearch : public Reference {
|
|||
}
|
||||
|
||||
public:
|
||||
IncrementalSearch(EditorHelpSearch *p_search, Tree *p_search_options, const String &p_term)
|
||||
: search(p_search), search_options(p_search_options) {
|
||||
IncrementalSearch(EditorHelpSearch *p_search, Tree *p_search_options, const String &p_term) :
|
||||
search(p_search),
|
||||
search_options(p_search_options) {
|
||||
|
||||
def_icon = search->get_icon("Node", "EditorIcons");
|
||||
doc = EditorHelp::get_doc_data();
|
||||
|
|
|
@ -3366,7 +3366,6 @@ void EditorNode::register_editor_types() {
|
|||
ClassDB::register_class<EditorResourceConversionPlugin>();
|
||||
ClassDB::register_class<EditorSceneImporter>();
|
||||
|
||||
|
||||
// FIXME: Is this stuff obsolete, or should it be ported to new APIs?
|
||||
ClassDB::register_class<EditorScenePostImport>();
|
||||
//ClassDB::register_type<EditorImportExport>();
|
||||
|
|
|
@ -31,11 +31,11 @@
|
|||
#define EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/import/editor_import_plugin.h"
|
||||
#include "editor/import/resource_importer_scene.h"
|
||||
#include "io/config_file.h"
|
||||
#include "scene/gui/tool_button.h"
|
||||
#include "scene/main/node.h"
|
||||
#include "scene/resources/texture.h"
|
||||
#include "editor/import/resource_importer_scene.h"
|
||||
#include "undo_redo.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -1979,7 +1979,7 @@ Node *EditorSceneImporterCollada::import_scene(const String &p_path, uint32_t p_
|
|||
return state.scene;
|
||||
}
|
||||
|
||||
Ref<Animation> EditorSceneImporterCollada::import_animation(const String &p_path, uint32_t p_flags,int p_bake_fps) {
|
||||
Ref<Animation> EditorSceneImporterCollada::import_animation(const String &p_path, uint32_t p_flags, int p_bake_fps) {
|
||||
|
||||
ColladaImport state;
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ public:
|
|||
virtual uint32_t get_import_flags() const;
|
||||
virtual void get_extensions(List<String> *r_extensions) const;
|
||||
virtual Node *import_scene(const String &p_path, uint32_t p_flags, int p_bake_fps, List<String> *r_missing_deps = NULL, Error *r_err = NULL);
|
||||
virtual Ref<Animation> import_animation(const String &p_path, uint32_t p_flags,int p_bake_fps);
|
||||
virtual Ref<Animation> import_animation(const String &p_path, uint32_t p_flags, int p_bake_fps);
|
||||
|
||||
EditorSceneImporterCollada();
|
||||
};
|
||||
|
|
|
@ -296,7 +296,7 @@ public:
|
|||
virtual uint32_t get_import_flags() const;
|
||||
virtual void get_extensions(List<String> *r_extensions) const;
|
||||
virtual Node *import_scene(const String &p_path, uint32_t p_flags, int p_bake_fps, List<String> *r_missing_deps = NULL, Error *r_err = NULL);
|
||||
virtual Ref<Animation> import_animation(const String &p_path, uint32_t p_flags,int p_bake_fps);
|
||||
virtual Ref<Animation> import_animation(const String &p_path, uint32_t p_flags, int p_bake_fps);
|
||||
|
||||
EditorSceneImporterGLTF();
|
||||
};
|
||||
|
|
|
@ -40,7 +40,7 @@ public:
|
|||
virtual uint32_t get_import_flags() const;
|
||||
virtual void get_extensions(List<String> *r_extensions) const;
|
||||
virtual Node *import_scene(const String &p_path, uint32_t p_flags, int p_bake_fps, List<String> *r_missing_deps, Error *r_err = NULL);
|
||||
virtual Ref<Animation> import_animation(const String &p_path, uint32_t p_flags,int p_bake_fps);
|
||||
virtual Ref<Animation> import_animation(const String &p_path, uint32_t p_flags, int p_bake_fps);
|
||||
|
||||
EditorOBJImporter();
|
||||
};
|
||||
|
|
|
@ -515,7 +515,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
|
|||
} else {
|
||||
v = "of type '" + _get_var_type(index) + "'";
|
||||
}
|
||||
err_text = "Invalid set index " + v + " (on base: '" + _get_var_type(dst) + "') with value of type '"+_get_var_type(value)+"'";
|
||||
err_text = "Invalid set index " + v + " (on base: '" + _get_var_type(dst) + "') with value of type '" + _get_var_type(value) + "'";
|
||||
OPCODE_BREAK;
|
||||
}
|
||||
#endif
|
||||
|
@ -574,7 +574,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
|
|||
#ifdef DEBUG_ENABLED
|
||||
if (!valid) {
|
||||
String err_type;
|
||||
err_text = "Invalid set index '" + String(*index) + "' (on base: '" + _get_var_type(dst) + "') with value of type '"+_get_var_type(value)+"'.";
|
||||
err_text = "Invalid set index '" + String(*index) + "' (on base: '" + _get_var_type(dst) + "') with value of type '" + _get_var_type(value) + "'.";
|
||||
OPCODE_BREAK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1286,7 +1286,7 @@ void GIProbe::bake(Node *p_from_node, bool p_create_visual_debug) {
|
|||
|
||||
Ref<GIProbeData> probe_data = get_probe_data();
|
||||
|
||||
if(probe_data.is_null())
|
||||
if (probe_data.is_null())
|
||||
probe_data.instance();
|
||||
|
||||
probe_data->set_bounds(AABB(-extents, extents * 2.0));
|
||||
|
|
|
@ -1189,7 +1189,7 @@ void ParticlesMaterial::set_flag(Flags p_flag, bool p_enable) {
|
|||
ERR_FAIL_INDEX(p_flag, FLAG_MAX);
|
||||
flags[p_flag] = p_enable;
|
||||
_queue_shader_change();
|
||||
if (p_flag==FLAG_DISABLE_Z) {
|
||||
if (p_flag == FLAG_DISABLE_Z) {
|
||||
_change_notify();
|
||||
}
|
||||
}
|
||||
|
@ -1379,7 +1379,7 @@ void ParticlesMaterial::_validate_property(PropertyInfo &property) const {
|
|||
}
|
||||
|
||||
if (property.name.begins_with("orbit_") && !flags[FLAG_DISABLE_Z]) {
|
||||
property.usage=0;
|
||||
property.usage = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue