Skip to content

Commit 3750830

Browse files
committed
Removed useless stuff from cut/copied subgraph
1 parent b4fcad0 commit 3750830

2 files changed

Lines changed: 15 additions & 12 deletions

File tree

material_maker/panels/graph_edit/graph_edit.gd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,9 @@ func serialize_selection(nodes = [], with_inputs : bool = false) -> Dictionary:
936936
var connection = c.duplicate(true)
937937
connection.from = from.generator.name
938938
connection.to = to.generator.name
939+
connection.erase("from_node")
940+
connection.erase("to_node")
941+
connection.erase("keep_alive")
939942
data.connections.append(connection)
940943
return data
941944

material_maker/panels/graph_edit/graph_edit.tscn

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

33
[ext_resource type="Script" uid="uid://dkp4w3at1o6cm" path="res://material_maker/panels/graph_edit/graph_edit.gd" id="1"]
44
[ext_resource type="Texture2D" uid="uid://c0j4px4n72di5" path="res://material_maker/icons/icons.tres" id="2"]
@@ -17,7 +17,7 @@ region = Rect2(15.4016, 47.1451, 16.7512, 17.8319)
1717
atlas = ExtResource("2")
1818
region = Rect2(0, 48, 16, 16)
1919

20-
[node name="GraphEdit" type="GraphEdit" groups=["mm_graphedit"]]
20+
[node name="GraphEdit" type="GraphEdit" unique_id=909518343 groups=["mm_graphedit"]]
2121
anchors_preset = 15
2222
anchor_right = 1.0
2323
anchor_bottom = 1.0
@@ -34,11 +34,11 @@ show_menu = false
3434
show_zoom_label = true
3535
script = ExtResource("1")
3636

37-
[node name="Timer" type="Timer" parent="."]
37+
[node name="Timer" type="Timer" parent="." unique_id=171489918]
3838
wait_time = 0.2
3939
one_shot = true
4040

41-
[node name="GraphUI" type="HBoxContainer" parent="."]
41+
[node name="GraphUI" type="HBoxContainer" parent="." unique_id=1729017653]
4242
top_level = true
4343
custom_minimum_size = Vector2(0, 25)
4444
layout_mode = 1
@@ -51,41 +51,41 @@ offset_bottom = 31.0
5151
grow_horizontal = 0
5252
alignment = 2
5353

54-
[node name="SubGraphUI" type="HBoxContainer" parent="GraphUI"]
54+
[node name="SubGraphUI" type="HBoxContainer" parent="GraphUI" unique_id=1271594081]
5555
layout_mode = 2
5656
size_flags_horizontal = 9
5757

58-
[node name="Label" type="LineEdit" parent="GraphUI/SubGraphUI"]
58+
[node name="Label" type="LineEdit" parent="GraphUI/SubGraphUI" unique_id=2015126151]
5959
custom_minimum_size = Vector2(150, 0)
6060
layout_mode = 2
6161
size_flags_horizontal = 9
6262

63-
[node name="Description" parent="GraphUI/SubGraphUI" instance=ExtResource("4")]
63+
[node name="Description" parent="GraphUI/SubGraphUI" unique_id=1150894657 instance=ExtResource("4")]
6464
layout_mode = 2
6565

66-
[node name="ButtonTransmitsSeed" type="Button" parent="GraphUI/SubGraphUI"]
66+
[node name="ButtonTransmitsSeed" type="Button" parent="GraphUI/SubGraphUI" unique_id=610922834]
6767
layout_mode = 2
6868
size_flags_horizontal = 9
6969
tooltip_text = "Affect children seeds"
7070
toggle_mode = true
7171
icon = SubResource("3")
7272

73-
[node name="ButtonUp" type="Button" parent="GraphUI/SubGraphUI"]
73+
[node name="ButtonUp" type="Button" parent="GraphUI/SubGraphUI" unique_id=78876607]
7474
layout_mode = 2
7575
size_flags_horizontal = 9
7676
tooltip_text = "Back to parent"
7777
icon = SubResource("4")
7878

79-
[node name="ButtonShowTree" type="Button" parent="GraphUI"]
79+
[node name="ButtonShowTree" type="Button" parent="GraphUI" unique_id=305280196]
8080
layout_mode = 2
8181
tooltip_text = "Show hierarchy"
8282
icon = SubResource("5")
8383

84-
[node name="Control" type="Control" parent="GraphUI"]
84+
[node name="Control" type="Control" parent="GraphUI" unique_id=805364353]
8585
custom_minimum_size = Vector2(14, 0)
8686
layout_mode = 2
8787

88-
[node name="UndoRedo" type="Node" parent="."]
88+
[node name="UndoRedo" type="Node" parent="." unique_id=118784873]
8989
script = ExtResource("3")
9090

9191
[connection signal="connection_drag_ended" from="." to="." method="_on_connection_drag_ended"]

0 commit comments

Comments
 (0)