[gd_scene load_steps=5 format=2] [ext_resource path="res://addons/mesh_data_resource_editor/MDIEd.gd" type="Script" id=1] [ext_resource path="res://addons/mesh_data_resource_editor/button_groups/vertex_position_operation_bg.tres" type="ButtonGroup" id=2] [ext_resource path="res://addons/mesh_data_resource_editor/UVEditor.gd" type="Script" id=3] [ext_resource path="res://addons/mesh_data_resource_editor/button_groups/edit_mode_button_group.tres" type="ButtonGroup" id=5] [node name="MDIEd" type="PanelContainer"] anchor_right = 1.0 anchor_bottom = 1.0 script = ExtResource( 1 ) __meta__ = { "_edit_use_anchors_": false } uv_editor_path = NodePath("VBoxContainer/ScrollContainer/VBoxContainer2/VBoxContainer/UVEditor") [node name="VBoxContainer" type="VBoxContainer" parent="."] margin_left = 7.0 margin_top = 7.0 margin_right = 1017.0 margin_bottom = 593.0 __meta__ = { "_edit_use_anchors_": false } [node name="Actions" type="VBoxContainer" parent="VBoxContainer"] margin_right = 1010.0 margin_bottom = 68.0 [node name="Actions" type="HBoxContainer" parent="VBoxContainer/Actions"] margin_right = 1010.0 margin_bottom = 68.0 alignment = 1 [node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/Actions/Actions"] margin_left = 457.0 margin_right = 466.0 margin_bottom = 68.0 [node name="Label" type="Label" parent="VBoxContainer/Actions/Actions/VBoxContainer"] margin_right = 9.0 margin_bottom = 20.0 hint_tooltip = "Edit Mode" mouse_filter = 0 size_flags_vertical = 7 text = "E" align = 1 valign = 1 [node name="Label2" type="Label" parent="VBoxContainer/Actions/Actions/VBoxContainer"] margin_top = 24.0 margin_right = 9.0 margin_bottom = 44.0 hint_tooltip = "Active Axis" mouse_filter = 0 size_flags_vertical = 7 text = "A" align = 1 valign = 1 [node name="Label3" type="Label" parent="VBoxContainer/Actions/Actions/VBoxContainer"] margin_top = 48.0 margin_right = 9.0 margin_bottom = 68.0 hint_tooltip = "Selection Mode" mouse_filter = 0 size_flags_vertical = 7 text = "S" align = 1 valign = 1 [node name="VBoxContainer2" type="VBoxContainer" parent="VBoxContainer/Actions/Actions"] margin_left = 470.0 margin_right = 553.0 margin_bottom = 68.0 [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/Actions/Actions/VBoxContainer2"] margin_right = 83.0 margin_bottom = 20.0 [node name="Translate" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer"] margin_right = 25.0 margin_bottom = 20.0 rect_min_size = Vector2( 25, 20 ) hint_tooltip = "Translate" size_flags_horizontal = 3 toggle_mode = true pressed = true group = ExtResource( 2 ) text = "T" [node name="Rotate" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer"] margin_left = 29.0 margin_right = 54.0 margin_bottom = 20.0 rect_min_size = Vector2( 25, 20 ) hint_tooltip = "Rotate" size_flags_horizontal = 3 toggle_mode = true group = ExtResource( 2 ) text = "R" [node name="Scale" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer"] margin_left = 58.0 margin_right = 83.0 margin_bottom = 20.0 rect_min_size = Vector2( 25, 20 ) hint_tooltip = "Scale" size_flags_horizontal = 3 toggle_mode = true group = ExtResource( 2 ) text = "S" [node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer/Actions/Actions/VBoxContainer2"] margin_top = 24.0 margin_right = 83.0 margin_bottom = 44.0 [node name="AxisX" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer2"] margin_right = 25.0 margin_bottom = 20.0 rect_min_size = Vector2( 25, 20 ) size_flags_horizontal = 3 toggle_mode = true pressed = true text = "x" [node name="AxisY" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer2"] margin_left = 29.0 margin_right = 54.0 margin_bottom = 20.0 rect_min_size = Vector2( 25, 20 ) size_flags_horizontal = 3 toggle_mode = true pressed = true text = "y" [node name="AxisZ" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer2"] margin_left = 58.0 margin_right = 83.0 margin_bottom = 20.0 rect_min_size = Vector2( 25, 20 ) size_flags_horizontal = 3 toggle_mode = true pressed = true text = "z" [node name="HBoxContainer3" type="HBoxContainer" parent="VBoxContainer/Actions/Actions/VBoxContainer2"] margin_top = 48.0 margin_right = 83.0 margin_bottom = 68.0 [node name="Vertex" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer3"] margin_right = 25.0 margin_bottom = 20.0 rect_min_size = Vector2( 25, 20 ) hint_tooltip = "Vertex" size_flags_horizontal = 3 toggle_mode = true pressed = true group = ExtResource( 5 ) text = "V" [node name="Edge" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer3"] margin_left = 29.0 margin_right = 54.0 margin_bottom = 20.0 rect_min_size = Vector2( 25, 20 ) hint_tooltip = "Edge" size_flags_horizontal = 3 toggle_mode = true group = ExtResource( 5 ) text = "E" [node name="Face" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer3"] margin_left = 58.0 margin_right = 83.0 margin_bottom = 20.0 rect_min_size = Vector2( 25, 20 ) hint_tooltip = "Face" size_flags_horizontal = 3 toggle_mode = true group = ExtResource( 5 ) text = "F" [node name="HSeparator" type="HSeparator" parent="VBoxContainer"] margin_top = 72.0 margin_right = 1010.0 margin_bottom = 76.0 [node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer"] margin_top = 80.0 margin_right = 1010.0 margin_bottom = 586.0 size_flags_horizontal = 3 size_flags_vertical = 3 scroll_horizontal_enabled = false [node name="VBoxContainer2" type="VBoxContainer" parent="VBoxContainer/ScrollContainer"] margin_right = 998.0 margin_bottom = 514.0 size_flags_horizontal = 3 [node name="VertexOps" type="VBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2"] margin_right = 998.0 margin_bottom = 104.0 [node name="OperationsLabel" type="Label" parent="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps"] margin_right = 998.0 margin_bottom = 14.0 text = "= Vertex =" align = 1 valign = 1 [node name="Operations" type="VBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps"] margin_top = 18.0 margin_right = 998.0 margin_bottom = 104.0 [node name="AddFace" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps/Operations"] margin_right = 998.0 margin_bottom = 20.0 text = "Create Face" [node name="Split" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps/Operations"] margin_top = 24.0 margin_right = 998.0 margin_bottom = 44.0 text = "Split" [node name="Label" type="Label" parent="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps/Operations"] margin_top = 48.0 margin_right = 998.0 margin_bottom = 62.0 text = "Connect" align = 1 valign = 1 [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps/Operations"] margin_top = 66.0 margin_right = 998.0 margin_bottom = 86.0 size_flags_horizontal = 3 [node name="ConnectToFirst" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps/Operations/HBoxContainer"] margin_right = 246.0 margin_bottom = 20.0 hint_tooltip = "Move all vertices to the first one that was selected." size_flags_horizontal = 3 text = "x<" [node name="ConnectMed" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps/Operations/HBoxContainer"] margin_left = 250.0 margin_right = 497.0 margin_bottom = 20.0 hint_tooltip = "Move all selected vertices to their average." size_flags_horizontal = 3 text = ">x<" [node name="ConnectToLast" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps/Operations/HBoxContainer"] margin_left = 501.0 margin_right = 747.0 margin_bottom = 20.0 hint_tooltip = "Move all selected vertices to the last that was selected." size_flags_horizontal = 3 text = ">x" [node name="Disconnect" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps/Operations/HBoxContainer"] margin_left = 751.0 margin_right = 998.0 margin_bottom = 20.0 hint_tooltip = "Move all vertices from each selected points apart so that you can select them again one by one." size_flags_horizontal = 3 text = "" [node name="EdgeOps" type="VBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2"] visible = false margin_right = 109.0 margin_bottom = 56.0 [node name="OperationsLabel" type="Label" parent="VBoxContainer/ScrollContainer/VBoxContainer2/EdgeOps"] margin_right = 1010.0 margin_bottom = 14.0 text = "= Edge =" align = 1 valign = 1 [node name="Operations" type="VBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2/EdgeOps"] margin_top = 18.0 margin_right = 1010.0 margin_bottom = 56.0 [node name="Extrude" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/EdgeOps/Operations"] visible = false margin_right = 1010.0 margin_bottom = 20.0 text = "Extrude" [node name="SeamLabel" type="Label" parent="VBoxContainer/ScrollContainer/VBoxContainer2/EdgeOps/Operations"] margin_right = 1010.0 margin_bottom = 14.0 text = "Seam" align = 1 valign = 1 [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2/EdgeOps/Operations"] margin_top = 18.0 margin_right = 1010.0 margin_bottom = 38.0 size_flags_horizontal = 3 [node name="Mark" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/EdgeOps/Operations/HBoxContainer"] margin_right = 503.0 margin_bottom = 20.0 size_flags_horizontal = 3 text = "Mark" [node name="Unmark" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/EdgeOps/Operations/HBoxContainer"] margin_left = 507.0 margin_right = 1010.0 margin_bottom = 20.0 size_flags_horizontal = 3 text = "Unmark" [node name="FaceOps" type="VBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2"] visible = false margin_right = 55.0 margin_bottom = 38.0 [node name="OperationsLabel" type="Label" parent="VBoxContainer/ScrollContainer/VBoxContainer2/FaceOps"] margin_right = 1010.0 margin_bottom = 14.0 text = "= Face =" align = 1 valign = 1 [node name="Operations" type="VBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2/FaceOps"] margin_top = 18.0 margin_right = 1010.0 margin_bottom = 110.0 [node name="Delete" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/FaceOps/Operations"] margin_right = 1010.0 margin_bottom = 20.0 text = "Delete" [node name="HSeparator4" type="HSeparator" parent="VBoxContainer/ScrollContainer/VBoxContainer2"] margin_top = 108.0 margin_right = 998.0 margin_bottom = 112.0 [node name="Operations" type="VBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2"] margin_top = 116.0 margin_right = 998.0 margin_bottom = 286.0 [node name="OperationsLabel" type="Label" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Operations"] margin_right = 998.0 margin_bottom = 14.0 text = "= Operations =" align = 1 valign = 1 [node name="Operations" type="VBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Operations"] margin_top = 18.0 margin_right = 998.0 margin_bottom = 170.0 [node name="UnwrapButton" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Operations/Operations"] margin_right = 998.0 margin_bottom = 20.0 text = "UV Unwrap" [node name="Label2" type="Label" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Operations/Operations"] margin_top = 24.0 margin_right = 998.0 margin_bottom = 38.0 text = "Generate" align = 1 valign = 1 [node name="GenNormals" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Operations/Operations"] margin_top = 42.0 margin_right = 998.0 margin_bottom = 62.0 text = "Normals" [node name="GenTangents" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Operations/Operations"] margin_top = 66.0 margin_right = 998.0 margin_bottom = 86.0 text = "Tangents" [node name="Label" type="Label" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Operations/Operations"] margin_top = 90.0 margin_right = 998.0 margin_bottom = 104.0 text = "Optimizations" align = 1 valign = 1 [node name="RemDoubles" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Operations/Operations"] margin_top = 108.0 margin_right = 998.0 margin_bottom = 128.0 text = "Rem Doubles" [node name="MergeOptimize" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Operations/Operations"] margin_top = 132.0 margin_right = 998.0 margin_bottom = 152.0 text = "Full Merge" [node name="HSeparator3" type="HSeparator" parent="VBoxContainer/ScrollContainer/VBoxContainer2"] margin_top = 290.0 margin_right = 998.0 margin_bottom = 294.0 [node name="Add" type="VBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2"] margin_top = 298.0 margin_right = 998.0 margin_bottom = 384.0 [node name="AddLabel" type="Label" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Add"] margin_right = 998.0 margin_bottom = 14.0 text = "= Add =" align = 1 valign = 1 [node name="Add" type="VBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Add"] margin_top = 18.0 margin_right = 998.0 margin_bottom = 86.0 [node name="AddBox" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Add/Add"] margin_right = 998.0 margin_bottom = 20.0 text = "Box" [node name="Tri" type="HBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Add/Add"] margin_top = 24.0 margin_right = 998.0 margin_bottom = 44.0 size_flags_horizontal = 3 [node name="AddTriangle" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Add/Add/Tri"] margin_right = 497.0 margin_bottom = 20.0 size_flags_horizontal = 3 text = "Tri" [node name="At" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Add/Add/Tri"] margin_left = 501.0 margin_right = 998.0 margin_bottom = 20.0 size_flags_horizontal = 3 size_flags_vertical = 3 text = "At" [node name="Quad" type="HBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Add/Add"] margin_top = 48.0 margin_right = 998.0 margin_bottom = 68.0 size_flags_horizontal = 3 [node name="AddQuad" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Add/Add/Quad"] margin_right = 497.0 margin_bottom = 20.0 size_flags_horizontal = 3 text = "Quad" [node name="At" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer2/Add/Add/Quad"] margin_left = 501.0 margin_right = 998.0 margin_bottom = 20.0 size_flags_horizontal = 3 text = "At" [node name="HSeparator2" type="HSeparator" parent="VBoxContainer/ScrollContainer/VBoxContainer2"] margin_top = 388.0 margin_right = 998.0 margin_bottom = 392.0 [node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer2"] margin_top = 396.0 margin_right = 998.0 margin_bottom = 514.0 size_flags_horizontal = 3 size_flags_vertical = 3 [node name="Label" type="Label" parent="VBoxContainer/ScrollContainer/VBoxContainer2/VBoxContainer"] margin_right = 998.0 margin_bottom = 14.0 text = "= UV =" align = 1 valign = 1 [node name="UVEditor" type="Control" parent="VBoxContainer/ScrollContainer/VBoxContainer2/VBoxContainer"] margin_top = 18.0 margin_right = 998.0 margin_bottom = 118.0 rect_min_size = Vector2( 100, 100 ) script = ExtResource( 3 ) [connection signal="toggled" from="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer/Translate" to="." method="on_edit_mode_translate_toggled"] [connection signal="toggled" from="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer/Rotate" to="." method="on_edit_mode_rotate_toggled"] [connection signal="toggled" from="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer/Scale" to="." method="on_edit_mode_scale_toggled"] [connection signal="toggled" from="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer2/AxisX" to="." method="on_axis_x_toggled"] [connection signal="toggled" from="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer2/AxisY" to="." method="on_axis_y_toggled"] [connection signal="toggled" from="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer2/AxisZ" to="." method="on_axis_z_toggled"] [connection signal="toggled" from="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer3/Vertex" to="." method="on_selection_mode_vertex_toggled"] [connection signal="toggled" from="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer3/Vertex" to="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps" method="set_visible"] [connection signal="toggled" from="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer3/Edge" to="." method="on_selection_mode_edge_toggled"] [connection signal="toggled" from="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer3/Edge" to="VBoxContainer/ScrollContainer/VBoxContainer2/EdgeOps" method="set_visible"] [connection signal="toggled" from="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer3/Face" to="." method="on_selection_mode_face_toggled"] [connection signal="toggled" from="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer3/Face" to="VBoxContainer/ScrollContainer/VBoxContainer2/FaceOps" method="set_visible"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps/Operations/AddFace" to="." method="_oncreate_face_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps/Operations/Split" to="." method="_on_split_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps/Operations/HBoxContainer/ConnectToFirst" to="." method="_on_connect_to_first_selected_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps/Operations/HBoxContainer/ConnectMed" to="." method="_on_connect_to_avg_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps/Operations/HBoxContainer/ConnectToLast" to="." method="_on_connect_to_last_selected_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/VertexOps/Operations/HBoxContainer/Disconnect" to="." method="_on_disconnect_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/EdgeOps/Operations/Extrude" to="." method="_on_Extrude_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/EdgeOps/Operations/HBoxContainer/Mark" to="." method="_on_mark_seam_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/EdgeOps/Operations/HBoxContainer/Unmark" to="." method="_on_unmark_seam_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/FaceOps/Operations/Delete" to="." method="_on_delete_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/Operations/Operations/UnwrapButton" to="." method="_on_UnwrapButton_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/Operations/Operations/GenNormals" to="." method="_on_GenNormals_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/Operations/Operations/GenTangents" to="." method="_on_GenTangents_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/Operations/Operations/RemDoubles" to="." method="_on_RemDoubles_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/Operations/Operations/MergeOptimize" to="." method="_on_MergeOptimize_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/Add/Add/AddBox" to="." method="_on_AddBox_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/Add/Add/Tri/AddTriangle" to="." method="_on_add_triangle_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/Add/Add/Tri/At" to="." method="_on_add_triangle_at_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/Add/Add/Quad/AddQuad" to="." method="_on_add_quad_pressed"] [connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxContainer2/Add/Add/Quad/At" to="." method="_on_add_auad_at_pressed"]