Skip to content

Commit df7206e

Browse files
authored
Upgraded Godot to 4.7 stable (contributed by williamchange)
Upgrade Godot to 4.7 stable
2 parents 74953d7 + aa47102 commit df7206e

9 files changed

Lines changed: 35 additions & 26 deletions

File tree

.github/workflows/dev-desktop-builds.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ on:
2424
default: "true"
2525

2626
env:
27-
GODOT_VERSION: 4.6.3
27+
GODOT_VERSION: 4.7
2828
GODOT_SUB: stable
29-
GODOT_DOWNLOAD_DIR: https://github.com/godotengine/godot-builds/releases/download/4.6.3-stable
29+
GODOT_DOWNLOAD_DIR: https://github.com/godotengine/godot-builds/releases/download/4.7-stable
3030
EXPORT_NAME: material_maker
3131
MM_RELEASE: 1_6
3232

addons/flexible_layout/flexible_overlay.tscn

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
[gd_scene load_steps=3 format=3 uid="uid://gqucl1dthw6d"]
1+
[gd_scene format=3 uid="uid://gqucl1dthw6d"]
22

33
[ext_resource type="Script" uid="uid://bhwlc7y7qgb2v" path="res://addons/flexible_layout/flexible_overlay.gd" id="1_5tomg"]
4-
[ext_resource type="Texture2D" uid="uid://c2ljin3axj2sd" path="res://addons/flexible_layout/arrow.svg" id="2_0tnc1"]
4+
[ext_resource type="Texture2D" uid="uid://7ydi1c1ic17e" path="res://addons/flexible_layout/arrow.svg" id="2_0tnc1"]
55

6-
[node name="Control" type="ColorRect"]
6+
[node name="Control" type="ColorRect" unique_id=619538545]
77
anchors_preset = 15
88
anchor_right = 1.0
99
anchor_bottom = 1.0
@@ -12,15 +12,15 @@ grow_vertical = 2
1212
color = Color(0.501961, 0.501961, 0.501961, 0.501961)
1313
script = ExtResource("1_5tomg")
1414

15-
[node name="Arrow" type="TextureRect" parent="."]
15+
[node name="Arrow" type="TextureRect" parent="." unique_id=607104480]
1616
visible = false
1717
layout_mode = 0
1818
offset_right = 40.0
1919
offset_bottom = 40.0
2020
pivot_offset = Vector2(32, 32)
2121
texture = ExtResource("2_0tnc1")
2222

23-
[node name="Rect" type="ColorRect" parent="."]
23+
[node name="Rect" type="ColorRect" parent="." unique_id=199752483]
2424
visible = false
2525
layout_mode = 0
2626
offset_right = 40.0

addons/material_maker/engine/shader_base.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ func set_shader(shader : String) -> bool:
1111
func get_parameters() -> Dictionary:
1212
return {}
1313

14-
func set_parameter(name : String, value) -> bool:
15-
return false
14+
func set_parameter(name : String, value) -> void:
15+
pass

addons/material_maker/engine/shader_material.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func get_parameters() -> Dictionary:
2727
rv[parameter_name] = material.get_shader_parameter(parameter_name)
2828
return rv
2929

30-
func set_parameter(name : String, value):
30+
func set_parameter(name : String, value) -> void:
3131
if value is MMTexture:
3232
material.set_shader_parameter(name, await value.get_texture())
3333
else:

material_maker/panels/graph_edit/graph_edit.gd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ func _ready() -> void:
8282
add_valid_connection_type(42, t)
8383
node_popup.about_to_popup.connect(func(): valid_drag_cut_entry = false)
8484

85+
# workaround for godot issue 120454
86+
for node in get_children(true):
87+
if "GraphEditFilter" in node.name:
88+
node.get_child(0).use_parent_material = false
89+
break
90+
8591
func _exit_tree():
8692
remove_crash_recovery_file()
8793

material_maker/theme/classic_base.tres

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ region = Rect2(96, 112, 16, 16)
9595
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_meah8"]
9696
bg_color = Color(0.14902, 0.172549, 0.231373, 1)
9797

98+
[sub_resource type="DPITexture" id="DPITexture_thibc"]
99+
98100
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7b2nb"]
99101
content_margin_left = 4.0
100102
content_margin_top = 4.0
@@ -950,10 +952,6 @@ border_width_top = 1
950952
border_width_right = 1
951953
border_width_bottom = 1
952954
border_color = Color(0.145098, 0.145098, 0.164706, 1)
953-
corner_radius_top_left = 4
954-
corner_radius_top_right = 4
955-
corner_radius_bottom_right = 4
956-
corner_radius_bottom_left = 4
957955
corner_detail = 4
958956
shadow_color = Color(0, 0, 0, 0.059000004)
959957
shadow_size = 4
@@ -1058,6 +1056,12 @@ CodeEdit/colors/single_line_comment_color = Color(0, 0.509804, 0, 1)
10581056
CodeEdit/colors/symbol_color = Color(1, 1, 1, 1)
10591057
CodeEdit/colors/type_color = Color(1, 1, 0.878431, 1)
10601058
CodeEdit/styles/normal = SubResource("StyleBoxFlat_meah8")
1059+
FileDialog/icons/menu_copy_path = SubResource("DPITexture_thibc")
1060+
FileDialog/icons/menu_delete = SubResource("DPITexture_thibc")
1061+
FileDialog/icons/menu_new_folder = SubResource("DPITexture_thibc")
1062+
FileDialog/icons/menu_open_bundle = SubResource("DPITexture_thibc")
1063+
FileDialog/icons/menu_refresh = SubResource("DPITexture_thibc")
1064+
FileDialog/icons/menu_show_in_file_manager = SubResource("DPITexture_thibc")
10611065
FileDialog/styles/panel = SubResource("StyleBoxFlat_7b2nb")
10621066
GraphEdit/colors/connection_knife = Color(1, 1, 1, 1)
10631067
GraphEdit/colors/grid_major = Color(0.321569, 0.337255, 0.384314, 1)

material_maker/theme/default.tres

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ metadata/recolor = false
105105
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_oy0ko"]
106106
bg_color = Color(0.0980392, 0.0980392, 0.101961, 1)
107107

108+
[sub_resource type="DPITexture" id="DPITexture_u716c"]
109+
108110
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ck0hb"]
109111
content_margin_left = 4.0
110112
content_margin_top = 4.0
@@ -766,10 +768,6 @@ border_width_top = 1
766768
border_width_right = 1
767769
border_width_bottom = 1
768770
border_color = Color(0.207843, 0.215686, 0.235294, 1)
769-
corner_radius_top_left = 2
770-
corner_radius_top_right = 2
771-
corner_radius_bottom_right = 2
772-
corner_radius_bottom_left = 2
773771
corner_detail = 4
774772
shadow_color = Color(0, 0, 0, 0.0588235)
775773
shadow_size = 4
@@ -1160,10 +1158,6 @@ border_width_top = 1
11601158
border_width_right = 1
11611159
border_width_bottom = 1
11621160
border_color = Color(0.145098, 0.145098, 0.164706, 1)
1163-
corner_radius_top_left = 4
1164-
corner_radius_top_right = 4
1165-
corner_radius_bottom_right = 4
1166-
corner_radius_bottom_left = 4
11671161
corner_detail = 4
11681162
shadow_color = Color(0, 0, 0, 0.0588235)
11691163
shadow_size = 4
@@ -1279,6 +1273,12 @@ CodeEdit/styles/normal = SubResource("StyleBoxFlat_oy0ko")
12791273
FileDialog/colors/file_disabled_color = Color(0.301961, 0.305882, 0.309804, 1)
12801274
FileDialog/colors/file_icon_color = Color(0.698039, 0.698039, 0.698039, 1)
12811275
FileDialog/colors/folder_icon_color = Color(0.698039, 0.698039, 0.698039, 1)
1276+
FileDialog/icons/menu_copy_path = SubResource("DPITexture_u716c")
1277+
FileDialog/icons/menu_delete = SubResource("DPITexture_u716c")
1278+
FileDialog/icons/menu_new_folder = SubResource("DPITexture_u716c")
1279+
FileDialog/icons/menu_open_bundle = SubResource("DPITexture_u716c")
1280+
FileDialog/icons/menu_refresh = SubResource("DPITexture_u716c")
1281+
FileDialog/icons/menu_show_in_file_manager = SubResource("DPITexture_u716c")
12821282
FileDialog/styles/panel = SubResource("StyleBoxFlat_ck0hb")
12831283
GraphEdit/colors/connection_knife = Color(0.99215686, 0.9843137, 1, 1)
12841284
GraphEdit/colors/grid_major = Color(0.137255, 0.141176, 0.152941, 1)

material_maker/widgets/option_edit/option_edit.tscn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
[gd_scene load_steps=2 format=3 uid="uid://dj5q8sxvd3gci"]
1+
[gd_scene format=3 uid="uid://dj5q8sxvd3gci"]
22

33
[ext_resource type="Script" uid="uid://bnwwic4t5iaoc" path="res://material_maker/widgets/option_edit/option_edit.gd" id="1_no1tx"]
44

5-
[node name="OptionEdit" type="OptionButton"]
5+
[node name="OptionEdit" type="OptionButton" unique_id=212079376]
66
offset_right = 32.0
77
offset_bottom = 20.0
88
theme_type_variation = &"MM_NodeOptionEdit"

project.godot

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ config/tags=PackedStringArray("material_maker")
2020
run/main_scene="res://parse_args.tscn"
2121
config/use_custom_user_dir=true
2222
config/custom_user_dir_name="material_maker_2"
23-
config/features=PackedStringArray("4.6")
23+
config/features=PackedStringArray("4.7")
2424
boot_splash/bg_color=Color(0, 0, 0, 1)
2525
boot_splash/show_image=false
2626
boot_splash/stretch_mode=0
@@ -60,7 +60,6 @@ window/size/borderless=true
6060
window/size/transparent=true
6161
window/size/window_width_override=1
6262
window/size/window_height_override=1
63-
window/per_pixel_transparency/allowed=true
6463
window/subwindows/embed_subwindows=false
6564
window/handheld/orientation.Android="sensor_landscape"
6665

0 commit comments

Comments
 (0)