mirror of
https://github.com/Relintai/material-maker.git
synced 2025-01-09 05:39:38 +01:00
Fixed 3D preview update problem (when changing the model)
This commit is contained in:
parent
22bacb6673
commit
d2b24f3ce3
File diff suppressed because one or more lines are too long
@ -132,6 +132,7 @@ func _ready() -> void:
|
|||||||
library = layout.get_pane("Library")
|
library = layout.get_pane("Library")
|
||||||
preview_2d = layout.get_pane("Preview2D")
|
preview_2d = layout.get_pane("Preview2D")
|
||||||
preview_3d = layout.get_pane("Preview3D")
|
preview_3d = layout.get_pane("Preview3D")
|
||||||
|
preview_3d.connect("need_update", self, "update_preview_3d")
|
||||||
hierarchy = layout.get_pane("Hierarchy")
|
hierarchy = layout.get_pane("Hierarchy")
|
||||||
hierarchy.connect("group_selected", self, "on_group_selected")
|
hierarchy.connect("group_selected", self, "on_group_selected")
|
||||||
|
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
[ext_resource path="res://material_maker/preview/preview_3d_ui.gd" type="Script" id=1]
|
[ext_resource path="res://material_maker/preview/preview_3d_ui.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://material_maker/icons/icons.svg" type="Texture" id=2]
|
[ext_resource path="res://material_maker/icons/icons.svg" type="Texture" id=2]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=1]
|
[sub_resource type="AtlasTexture" id=1]
|
||||||
flags = 4
|
flags = 4
|
||||||
atlas = ExtResource( 2 )
|
atlas = ExtResource( 2 )
|
||||||
@ -15,6 +13,9 @@ anchor_right = 1.0
|
|||||||
margin_bottom = 20.0
|
margin_bottom = 20.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
[node name="Model" type="OptionButton" parent="."]
|
[node name="Model" type="OptionButton" parent="."]
|
||||||
margin_right = 100.0
|
margin_right = 100.0
|
||||||
@ -26,7 +27,7 @@ selected = 0
|
|||||||
|
|
||||||
[node name="Environment" type="OptionButton" parent="."]
|
[node name="Environment" type="OptionButton" parent="."]
|
||||||
margin_left = 104.0
|
margin_left = 104.0
|
||||||
margin_right = 231.0
|
margin_right = 219.0
|
||||||
margin_bottom = 22.0
|
margin_bottom = 22.0
|
||||||
rect_min_size = Vector2( 100, 0 )
|
rect_min_size = Vector2( 100, 0 )
|
||||||
text = "Epping Forest"
|
text = "Epping Forest"
|
||||||
@ -34,8 +35,8 @@ items = [ "Epping Forest", null, false, 0, null, "Moonless Golf", null, false, 1
|
|||||||
selected = 0
|
selected = 0
|
||||||
|
|
||||||
[node name="Rotate" type="Button" parent="."]
|
[node name="Rotate" type="Button" parent="."]
|
||||||
margin_left = 235.0
|
margin_left = 223.0
|
||||||
margin_right = 263.0
|
margin_right = 251.0
|
||||||
margin_bottom = 22.0
|
margin_bottom = 22.0
|
||||||
rect_pivot_offset = Vector2( -4, 7 )
|
rect_pivot_offset = Vector2( -4, 7 )
|
||||||
hint_tooltip = "Rotate object"
|
hint_tooltip = "Rotate object"
|
||||||
|
Loading…
Reference in New Issue
Block a user