Fixed 3D preview update problem (when changing the model)

This commit is contained in:
RodZill4 2020-03-13 22:41:06 +01:00
parent 22bacb6673
commit d2b24f3ce3
3 changed files with 9 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -132,6 +132,7 @@ func _ready() -> void:
library = layout.get_pane("Library")
preview_2d = layout.get_pane("Preview2D")
preview_3d = layout.get_pane("Preview3D")
preview_3d.connect("need_update", self, "update_preview_3d")
hierarchy = layout.get_pane("Hierarchy")
hierarchy.connect("group_selected", self, "on_group_selected")

View File

@ -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/icons/icons.svg" type="Texture" id=2]
[sub_resource type="AtlasTexture" id=1]
flags = 4
atlas = ExtResource( 2 )
@ -15,6 +13,9 @@ anchor_right = 1.0
margin_bottom = 20.0
size_flags_horizontal = 3
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Model" type="OptionButton" parent="."]
margin_right = 100.0
@ -26,7 +27,7 @@ selected = 0
[node name="Environment" type="OptionButton" parent="."]
margin_left = 104.0
margin_right = 231.0
margin_right = 219.0
margin_bottom = 22.0
rect_min_size = Vector2( 100, 0 )
text = "Epping Forest"
@ -34,8 +35,8 @@ items = [ "Epping Forest", null, false, 0, null, "Moonless Golf", null, false, 1
selected = 0
[node name="Rotate" type="Button" parent="."]
margin_left = 235.0
margin_right = 263.0
margin_left = 223.0
margin_right = 251.0
margin_bottom = 22.0
rect_pivot_offset = Vector2( -4, 7 )
hint_tooltip = "Rotate object"