Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
git subrepo pull (merge) --force godot
Browse files Browse the repository at this point in the history
subrepo:
  subdir:   "godot"
  merged:   "38be04bc9e"
upstream:
  origin:   "https://github.com/V-Sekai/godot.git"
  branch:   "groups-4.4"
  commit:   "38be04bc9e"
git-subrepo:
  version:  "0.4.6"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "73a0129"
  • Loading branch information
fire committed Nov 8, 2024
1 parent 4bcc6d8 commit cb39546
Show file tree
Hide file tree
Showing 52 changed files with 415 additions and 444 deletions.
4 changes: 2 additions & 2 deletions godot/.gitrepo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[subrepo]
remote = https://github.com/V-Sekai/godot.git
branch = groups-4.4
commit = 6d8b3a90e1caca7be24d03ad5e7fd7b491ac143f
parent = eeb6e98f9327fea0d5a463e13a3c37abe0e74d96
commit = 38be04bc9edb13531f12f4e35f7d7681a243f254
parent = 4bcc6d84448773055ae571a95be96c5320c4aa74
method = merge
cmdver = 0.4.6
2 changes: 1 addition & 1 deletion godot/core/io/resource_importer.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class ResourceImporter : public RefCounted {
virtual String get_option_group_file() const { return String(); }

virtual Error import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) = 0;
virtual bool can_import_threaded() const { return true; }
virtual bool can_import_threaded() const { return false; }
virtual void import_threaded_begin() {}
virtual void import_threaded_end() {}

Expand Down
3 changes: 2 additions & 1 deletion godot/doc/classes/EditorImportPlugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@
<return type="bool" />
<description>
Tells whether this importer can be run in parallel on threads, or, on the contrary, it's only safe for the editor to call it from the main thread, for one file at a time.
If this method is not overridden, it will return [code]true[/code] by default (i.e., safe for parallel importing).
If this method is not overridden, it will return [code]false[/code] by default.
If this importer's implementation is thread-safe and can be run in parallel, override this with [code]true[/code] to optimize for concurrency.
</description>
</method>
<method name="_get_import_options" qualifiers="virtual const">
Expand Down
4 changes: 2 additions & 2 deletions godot/doc/classes/ProjectSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,10 @@
When set to [code]warn[/code] or [code]error[/code], produces a warning or an error respectively when defining a local or member variable, signal, or enum that would have the same name as a built-in function or global class name, thus shadowing it.
</member>
<member name="debug/gdscript/warnings/shadowed_variable" type="int" setter="" getter="" default="1">
When set to [code]warn[/code] or [code]error[/code], produces a warning or an error respectively when defining a local or member variable that would shadow a member variable that the class defines.
When set to [code]warn[/code] or [code]error[/code], produces a warning or an error respectively when a local variable or local constant shadows a member declared in the current class.
</member>
<member name="debug/gdscript/warnings/shadowed_variable_base_class" type="int" setter="" getter="" default="1">
When set to [code]warn[/code] or [code]error[/code], produces a warning or an error respectively when defining a local or subclass member variable that would shadow a variable that is inherited from a parent class.
When set to [code]warn[/code] or [code]error[/code], produces a warning or an error respectively when a local variable or local constant shadows a member declared in a base class.
</member>
<member name="debug/gdscript/warnings/standalone_expression" type="int" setter="" getter="" default="1">
When set to [code]warn[/code] or [code]error[/code], produces a warning or an error respectively when calling an expression that may have no effect on the surrounding code, such as writing [code]2 + 2[/code] as a statement.
Expand Down
2 changes: 1 addition & 1 deletion godot/doc/classes/ResourceLoader.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<param index="1" name="progress" type="Array" default="[]" />
<description>
Returns the status of a threaded loading operation started with [method load_threaded_request] for the resource at [param path]. See [enum ThreadLoadStatus] for possible return values.
An array variable can optionally be passed via [param progress], and will return a one-element array containing the percentage of completion of the threaded loading.
An array variable can optionally be passed via [param progress], and will return a one-element array containing the ratio of completion of the threaded loading (between [code]0.0[/code] and [code]1.0[/code]).
[b]Note:[/b] The recommended way of using this method is to call it during different frames (e.g., in [method Node._process], instead of a loop).
</description>
</method>
Expand Down
3 changes: 0 additions & 3 deletions godot/editor/import/3d/resource_importer_obj.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ class ResourceImporterOBJ : public ResourceImporter {

virtual Error import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) override;

// Threaded import can currently cause deadlocks, see GH-48265.
virtual bool can_import_threaded() const override { return false; }

ResourceImporterOBJ();
};

Expand Down
1 change: 1 addition & 0 deletions godot/editor/import/3d/resource_importer_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2623,6 +2623,7 @@ Node *ResourceImporterScene::_generate_meshes(Node *p_node, const Dictionary &p_

mesh_node->set_layer_mask(src_mesh_node->get_layer_mask());
mesh_node->set_cast_shadows_setting(src_mesh_node->get_cast_shadows_setting());
mesh_node->set_visible(src_mesh_node->is_visible());
mesh_node->set_visibility_range_begin(src_mesh_node->get_visibility_range_begin());
mesh_node->set_visibility_range_begin_margin(src_mesh_node->get_visibility_range_begin_margin());
mesh_node->set_visibility_range_end(src_mesh_node->get_visibility_range_end());
Expand Down
2 changes: 0 additions & 2 deletions godot/editor/import/3d/resource_importer_scene.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,6 @@ class ResourceImporterScene : public ResourceImporter {
virtual bool has_advanced_options() const override;
virtual void show_advanced_options(const String &p_path) override;

virtual bool can_import_threaded() const override { return false; }

ResourceImporterScene(const String &p_scene_import_type = "PackedScene", bool p_singleton = false);
~ResourceImporterScene();

Expand Down
1 change: 1 addition & 0 deletions godot/editor/import/3d/scene_import_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ void SceneImportSettingsDialog::_fill_scene(Node *p_node, TreeItem *p_parent_ite
mesh_node->set_transform(src_mesh_node->get_transform());
mesh_node->set_skin(src_mesh_node->get_skin());
mesh_node->set_skeleton_path(src_mesh_node->get_skeleton_path());
mesh_node->set_visible(src_mesh_node->is_visible());
if (src_mesh_node->get_mesh().is_valid()) {
Ref<ImporterMesh> editor_mesh = src_mesh_node->get_mesh();
mesh_node->set_mesh(editor_mesh->get_mesh());
Expand Down
2 changes: 2 additions & 0 deletions godot/editor/import/resource_importer_bitmask.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class ResourceImporterBitMap : public ResourceImporter {
virtual bool get_option_visibility(const String &p_path, const String &p_option, const HashMap<StringName, Variant> &p_options) const override;
virtual Error import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) override;

virtual bool can_import_threaded() const override { return true; }

ResourceImporterBitMap();
~ResourceImporterBitMap();
};
Expand Down
2 changes: 2 additions & 0 deletions godot/editor/import/resource_importer_bmfont.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class ResourceImporterBMFont : public ResourceImporter {

virtual Error import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) override;

virtual bool can_import_threaded() const override { return true; }

ResourceImporterBMFont();
};

Expand Down
2 changes: 2 additions & 0 deletions godot/editor/import/resource_importer_csv_translation.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ class ResourceImporterCSVTranslation : public ResourceImporter {

virtual Error import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) override;

virtual bool can_import_threaded() const override { return true; }

ResourceImporterCSVTranslation();
};

Expand Down
2 changes: 2 additions & 0 deletions godot/editor/import/resource_importer_dynamic_font.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ class ResourceImporterDynamicFont : public ResourceImporter {

virtual Error import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) override;

virtual bool can_import_threaded() const override { return true; }

ResourceImporterDynamicFont();
};

Expand Down
2 changes: 2 additions & 0 deletions godot/editor/import/resource_importer_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class ResourceImporterImage : public ResourceImporter {

virtual Error import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) override;

virtual bool can_import_threaded() const override { return true; }

ResourceImporterImage();
};

Expand Down
2 changes: 2 additions & 0 deletions godot/editor/import/resource_importer_imagefont.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class ResourceImporterImageFont : public ResourceImporter {

virtual Error import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) override;

virtual bool can_import_threaded() const override { return true; }

ResourceImporterImageFont();
};

Expand Down
2 changes: 2 additions & 0 deletions godot/editor/import/resource_importer_layered_texture.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ class ResourceImporterLayeredTexture : public ResourceImporter {
virtual bool are_import_settings_valid(const String &p_path, const Dictionary &p_meta) const override;
virtual String get_import_settings_string() const override;

virtual bool can_import_threaded() const override { return true; }

void set_mode(Mode p_mode) { mode = p_mode; }

ResourceImporterLayeredTexture(bool p_singleton = false);
Expand Down
2 changes: 2 additions & 0 deletions godot/editor/import/resource_importer_shader_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ class ResourceImporterShaderFile : public ResourceImporter {

virtual Error import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) override;

virtual bool can_import_threaded() const override { return true; }

ResourceImporterShaderFile();
};

Expand Down
2 changes: 2 additions & 0 deletions godot/editor/import/resource_importer_texture.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ class ResourceImporterTexture : public ResourceImporter {

virtual Error import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) override;

virtual bool can_import_threaded() const override { return true; }

void update_imports();

virtual bool are_import_settings_valid(const String &p_path, const Dictionary &p_meta) const override;
Expand Down
2 changes: 2 additions & 0 deletions godot/editor/import/resource_importer_texture_atlas.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ class ResourceImporterTextureAtlas : public ResourceImporter {
virtual Error import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) override;
virtual Error import_group_file(const String &p_group_file, const HashMap<String, HashMap<StringName, Variant>> &p_source_file_options, const HashMap<String, String> &p_base_paths) override;

virtual bool can_import_threaded() const override { return true; }

ResourceImporterTextureAtlas();
};

Expand Down
2 changes: 2 additions & 0 deletions godot/editor/import/resource_importer_wav.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ class ResourceImporterWAV : public ResourceImporter {

virtual Error import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) override;

virtual bool can_import_threaded() const override { return true; }

ResourceImporterWAV();
};

Expand Down
2 changes: 1 addition & 1 deletion godot/editor/plugins/node_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8484,7 +8484,7 @@ void Node3DEditor::clear() {
}

for (uint32_t i = 0; i < VIEWPORTS_COUNT; i++) {
viewports[i]->view_menu->get_popup()->set_item_checked(view_menu->get_popup()->get_item_index(Node3DEditorViewport::VIEW_AUDIO_LISTENER), i == 0);
viewports[i]->view_menu->get_popup()->set_item_checked(viewports[i]->view_menu->get_popup()->get_item_index(Node3DEditorViewport::VIEW_AUDIO_LISTENER), i == 0);
viewports[i]->viewport->set_as_audio_listener_3d(i == 0);
}

Expand Down
35 changes: 2 additions & 33 deletions godot/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,35 +90,6 @@ def add_source_files_orig(self, sources, files, allow_gen=False):
sources.append(obj)


# The section name is used for checking
# the hash table to see whether the folder
# is included in the SCU build.
# It will be something like "core/math".
def _find_scu_section_name(subdir):
section_path = os.path.abspath(subdir) + "/"

folders = []
folder = ""

for i in range(8):
folder = os.path.dirname(section_path)
folder = os.path.basename(folder)
if folder == base_folder_only:
break
folders += [folder]
section_path += "../"
section_path = os.path.abspath(section_path) + "/"

section_name = ""
for n in range(len(folders)):
# section_name += folders[len(folders) - n - 1] + " "
section_name += folders[len(folders) - n - 1]
if n != (len(folders) - 1):
section_name += "/"

return section_name


def add_source_files_scu(self, sources, files, allow_gen=False):
if self["scu_build"] and isinstance(files, str):
if "*." not in files:
Expand All @@ -127,10 +98,8 @@ def add_source_files_scu(self, sources, files, allow_gen=False):
# If the files are in a subdirectory, we want to create the scu gen
# files inside this subdirectory.
subdir = os.path.dirname(files)
if subdir != "":
subdir += "/"

section_name = _find_scu_section_name(subdir)
subdir = subdir if subdir == "" else subdir + "/"
section_name = self.Dir(subdir).tpath
# if the section name is in the hash table?
# i.e. is it part of the SCU build?
global _scu_folders
Expand Down
Loading

0 comments on commit cb39546

Please sign in to comment.