diff options
-rw-r--r-- | .git-blame-ignore-revs | 36 | ||||
-rw-r--r-- | doc/classes/Control.xml | 6 | ||||
-rw-r--r-- | editor/editor_node.cpp | 16 | ||||
-rw-r--r-- | editor/editor_themes.cpp | 4 | ||||
-rw-r--r-- | editor/plugins/navigation_obstacle_3d_editor_plugin.cpp | 6 | ||||
-rw-r--r-- | scene/resources/bone_map.cpp | 4 | ||||
-rw-r--r-- | scene/resources/mesh.cpp | 2 | ||||
-rw-r--r-- | scene/resources/skeleton_modification_stack_2d.cpp | 4 |
8 files changed, 57 insertions, 21 deletions
diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 728acb8da7..eed5b661b8 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -15,3 +15,39 @@ # Style: clang-format: Disable AllowShortIfStatementsOnASingleLine e956e80c1fa1cc8aefcb1533e5acf5cf3c8ffdd9 + +# One Copyright Update to rule them all +d95794ec8a7c362b06a9cf080e2554ef77adb667 + +# Update copyright statements to 2022 +fe52458154c64fb1b741df4f7bd10106395f7cbd + +# Update copyright statements to 2021 +b5334d14f7a471f94bcbd64d5bae2ad853d0b7f1 + +# Update copyright statements to 2020 +a7f49ac9a107820a62677ee3fb49d38982a25165 + +# Update copyright statements to 2019 +b16c309f82c77d606472c3c721a1857e323a09e7 + +# Update copyright statements to 2018 +b50a9114b105dafafdda8248a38653bca314a6f3 + +# Welcome in 2017, dear changelog reader! +c7bc44d5ad9aae4902280012f7654e2318cd910e + +# Update copyright to 2016 in headers +5be9ff7b6715a661e85f99b108f96340de7ef435 + +# Updated copyright year in all headers +fdaa2920eb21fff3320a17e9239e04dfadecdb00 + +# Add missing copyright headers and fix formatting +e4213e66b2dd8f5a87d8cf5015ac83ba3143279d + +# Use HTTPS URL for Godot's website in the headers +bd282ff43f23fe845f29a3e25c8efc01bd65ffb0 + +# Add "Godot Engine contributors" copyright line +df61dc4b2bd54a5a40c515493c76f5a458e5b541 diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index 21d6cb2756..b5333a045b 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -1172,10 +1172,12 @@ [b]Note:[/b] As an optimization, this notification won't be sent from changes that occur while this node is outside of the scene tree. Instead, all of the theme item updates can be applied at once when the node enters the scene tree. </constant> <constant name="NOTIFICATION_SCROLL_BEGIN" value="47"> - Sent when this node is inside a [ScrollContainer] which has begun being scrolled. + Sent when this node is inside a [ScrollContainer] which has begun being scrolled when dragging the scrollable area [i]with a touch event[/i]. This notification is [i]not[/i] sent when scrolling by dragging the scrollbar, scrolling with the mouse wheel or scrolling with keyboard/gamepad events. + [b]Note:[/b] This signal is only emitted on Android or iOS, or on desktop/web platforms when [member ProjectSettings.input_devices/pointing/emulate_touch_from_mouse] is enabled. </constant> <constant name="NOTIFICATION_SCROLL_END" value="48"> - Sent when this node is inside a [ScrollContainer] which has stopped being scrolled. + Sent when this node is inside a [ScrollContainer] which has stopped being scrolled when dragging the scrollable area [i]with a touch event[/i]. This notification is [i]not[/i] sent when scrolling by dragging the scrollbar, scrolling with the mouse wheel or scrolling with keyboard/gamepad events. + [b]Note:[/b] This signal is only emitted on Android or iOS, or on desktop/web platforms when [member ProjectSettings.input_devices/pointing/emulate_touch_from_mouse] is enabled. </constant> <constant name="NOTIFICATION_LAYOUT_DIRECTION_CHANGED" value="49"> Sent when control layout direction is changed. diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 3d431ae67e..4f87838014 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2349,21 +2349,15 @@ void EditorNode::_edit_current(bool p_skip_foreign) { int subr_idx = current_res->get_path().find("::"); if (subr_idx != -1) { String base_path = current_res->get_path().substr(0, subr_idx); - if (!base_path.is_resource_file()) { - if (FileAccess::exists(base_path + ".import")) { + if (FileAccess::exists(base_path + ".import")) { + if (!base_path.is_resource_file()) { if (get_edited_scene() && get_edited_scene()->get_scene_file_path() == base_path) { info_is_warning = true; } - editable_info = TTR("This resource belongs to a scene that was imported, so it's not editable.\nPlease read the documentation relevant to importing scenes to better understand this workflow."); - } else { - if ((!get_edited_scene() || get_edited_scene()->get_scene_file_path() != base_path) && ResourceLoader::get_resource_type(base_path) == "PackedScene") { - editable_info = TTR("This resource belongs to a scene that was instantiated or inherited.\nChanges to it must be made inside the original scene."); - } - } - } else { - if (FileAccess::exists(base_path + ".import")) { - editable_info = TTR("This resource belongs to a scene that was imported, so it's not editable.\nPlease read the documentation relevant to importing scenes to better understand this workflow."); } + editable_info = TTR("This resource belongs to a scene that was imported, so it's not editable.\nPlease read the documentation relevant to importing scenes to better understand this workflow."); + } else if ((!get_edited_scene() || get_edited_scene()->get_scene_file_path() != base_path) && ResourceLoader::get_resource_type(base_path) == "PackedScene") { + editable_info = TTR("This resource belongs to a scene that was instantiated or inherited.\nChanges to it must be made inside the original scene."); } } else if (current_res->get_path().is_resource_file()) { if (FileAccess::exists(current_res->get_path() + ".import")) { diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 2a42224c87..227b52472f 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -1808,7 +1808,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { if (increase_scrollbar_touch_area) { theme->set_stylebox("scroll", "HScrollBar", make_line_stylebox(separator_color, 50)); } else { - theme->set_stylebox("scroll", "HScrollBar", make_stylebox(theme->get_icon(SNAME("GuiScrollBg"), EditorStringName(EditorIcons)), 5, 5, 5, 5, 1, 1, 1, 1)); + theme->set_stylebox("scroll", "HScrollBar", make_stylebox(theme->get_icon(SNAME("GuiScrollBg"), EditorStringName(EditorIcons)), 5, 5, 5, 5, -5, 1, -5, 1)); } theme->set_stylebox("scroll_focus", "HScrollBar", make_stylebox(theme->get_icon(SNAME("GuiScrollBg"), EditorStringName(EditorIcons)), 5, 5, 5, 5, 1, 1, 1, 1)); theme->set_stylebox("grabber", "HScrollBar", make_stylebox(theme->get_icon(SNAME("GuiScrollGrabber"), EditorStringName(EditorIcons)), 6, 6, 6, 6, 1, 1, 1, 1)); @@ -1826,7 +1826,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { if (increase_scrollbar_touch_area) { theme->set_stylebox("scroll", "VScrollBar", make_line_stylebox(separator_color, 50, 1, 1, true)); } else { - theme->set_stylebox("scroll", "VScrollBar", make_stylebox(theme->get_icon(SNAME("GuiScrollBg"), EditorStringName(EditorIcons)), 5, 5, 5, 5, 1, 1, 1, 1)); + theme->set_stylebox("scroll", "VScrollBar", make_stylebox(theme->get_icon(SNAME("GuiScrollBg"), EditorStringName(EditorIcons)), 5, 5, 5, 5, 1, -5, 1, -5)); } theme->set_stylebox("scroll_focus", "VScrollBar", make_stylebox(theme->get_icon(SNAME("GuiScrollBg"), EditorStringName(EditorIcons)), 5, 5, 5, 5, 1, 1, 1, 1)); theme->set_stylebox("grabber", "VScrollBar", make_stylebox(theme->get_icon(SNAME("GuiScrollGrabber"), EditorStringName(EditorIcons)), 6, 6, 6, 6, 1, 1, 1, 1)); diff --git a/editor/plugins/navigation_obstacle_3d_editor_plugin.cpp b/editor/plugins/navigation_obstacle_3d_editor_plugin.cpp index 9747ef4d48..5118f1d458 100644 --- a/editor/plugins/navigation_obstacle_3d_editor_plugin.cpp +++ b/editor/plugins/navigation_obstacle_3d_editor_plugin.cpp @@ -503,7 +503,11 @@ void NavigationObstacle3DEditor::edit(Node *p_node) { wip.clear(); wip_active = false; edited_point = -1; - p_node->add_child(point_lines_meshinstance); + if (point_lines_meshinstance->get_parent()) { + point_lines_meshinstance->reparent(p_node, false); + } else { + p_node->add_child(point_lines_meshinstance); + } _polygon_draw(); } else { diff --git a/scene/resources/bone_map.cpp b/scene/resources/bone_map.cpp index 759d189bfa..5363b8ec79 100644 --- a/scene/resources/bone_map.cpp +++ b/scene/resources/bone_map.cpp @@ -37,7 +37,7 @@ bool BoneMap::_set(const StringName &p_path, const Variant &p_value) { set_skeleton_bone_name(which, p_value); return true; } - return true; + return false; } bool BoneMap::_get(const StringName &p_path, Variant &r_ret) const { @@ -47,7 +47,7 @@ bool BoneMap::_get(const StringName &p_path, Variant &r_ret) const { r_ret = get_skeleton_bone_name(which); return true; } - return true; + return false; } void BoneMap::_get_property_list(List<PropertyInfo> *p_list) const { diff --git a/scene/resources/mesh.cpp b/scene/resources/mesh.cpp index 46c1327e2b..b122189558 100644 --- a/scene/resources/mesh.cpp +++ b/scene/resources/mesh.cpp @@ -1712,7 +1712,7 @@ bool ArrayMesh::_get(const StringName &p_name, Variant &r_ret) const { return true; } - return true; + return false; } void ArrayMesh::reset_state() { diff --git a/scene/resources/skeleton_modification_stack_2d.cpp b/scene/resources/skeleton_modification_stack_2d.cpp index 71ddbc0898..5703185374 100644 --- a/scene/resources/skeleton_modification_stack_2d.cpp +++ b/scene/resources/skeleton_modification_stack_2d.cpp @@ -49,7 +49,7 @@ bool SkeletonModificationStack2D::_set(const StringName &p_path, const Variant & set_modification(mod_idx, p_value); return true; } - return true; + return false; } bool SkeletonModificationStack2D::_get(const StringName &p_path, Variant &r_ret) const { @@ -60,7 +60,7 @@ bool SkeletonModificationStack2D::_get(const StringName &p_path, Variant &r_ret) r_ret = get_modification(mod_idx); return true; } - return true; + return false; } void SkeletonModificationStack2D::setup() { |