mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Fix 3DShapeEdit option values not updating when selecting 3D objects
This commit is contained in:
parent
dcd93b4366
commit
970b24ec40
|
@ -359,7 +359,7 @@ func _set_node_values(to_edit: Object, properties: Dictionary) -> void:
|
||||||
if property_path.ends_with("v2"):
|
if property_path.ends_with("v2"):
|
||||||
property_path = property_path.replace("v2", "")
|
property_path = property_path.replace("v2", "")
|
||||||
var value = to_edit.get_indexed(property_path)
|
var value = to_edit.get_indexed(property_path)
|
||||||
if not is_instance_valid(value):
|
if value == null:
|
||||||
continue
|
continue
|
||||||
if "scale" in prop:
|
if "scale" in prop:
|
||||||
value *= 100
|
value *= 100
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
[ext_resource type="PackedScene" uid="uid://yjhp0ssng2mp" path="res://src/UI/Nodes/ValueSlider.tscn" id="4"]
|
[ext_resource type="PackedScene" uid="uid://yjhp0ssng2mp" path="res://src/UI/Nodes/ValueSlider.tscn" id="4"]
|
||||||
[ext_resource type="Script" path="res://src/UI/Nodes/ValueSlider.gd" id="5"]
|
[ext_resource type="Script" path="res://src/UI/Nodes/ValueSlider.gd" id="5"]
|
||||||
[ext_resource type="Script" path="res://src/UI/Nodes/CollapsibleContainer.gd" id="6"]
|
[ext_resource type="Script" path="res://src/UI/Nodes/CollapsibleContainer.gd" id="6"]
|
||||||
[ext_resource type="PackedScene" path="res://src/UI/Nodes/ValueSliderV3.tscn" id="7"]
|
[ext_resource type="PackedScene" uid="uid://dpoteid430evf" path="res://src/UI/Nodes/ValueSliderV3.tscn" id="7"]
|
||||||
|
|
||||||
[sub_resource type="InputEventAction" id="InputEventAction_8sqgw"]
|
[sub_resource type="InputEventAction" id="InputEventAction_8sqgw"]
|
||||||
action = &"delete"
|
action = &"delete"
|
||||||
|
@ -31,10 +31,9 @@ unique_name_in_owner = true
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
mouse_default_cursor_shape = 2
|
mouse_default_cursor_shape = 2
|
||||||
item_count = 1
|
|
||||||
selected = 0
|
selected = 0
|
||||||
|
item_count = 1
|
||||||
popup/item_0/text = "None"
|
popup/item_0/text = "None"
|
||||||
popup/item_0/id = 0
|
|
||||||
|
|
||||||
[node name="NewObjectMenuButton" type="MenuButton" parent="HandleObjects" index="2"]
|
[node name="NewObjectMenuButton" type="MenuButton" parent="HandleObjects" index="2"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
|
@ -80,10 +79,9 @@ unique_name_in_owner = true
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
mouse_default_cursor_shape = 2
|
mouse_default_cursor_shape = 2
|
||||||
item_count = 3
|
|
||||||
selected = 0
|
selected = 0
|
||||||
|
item_count = 3
|
||||||
popup/item_0/text = "Perspective"
|
popup/item_0/text = "Perspective"
|
||||||
popup/item_0/id = 0
|
|
||||||
popup/item_1/text = "Orthogonal"
|
popup/item_1/text = "Orthogonal"
|
||||||
popup/item_1/id = 1
|
popup/item_1/id = 1
|
||||||
popup/item_2/text = "Frustum"
|
popup/item_2/text = "Frustum"
|
||||||
|
@ -552,7 +550,7 @@ focus_mode = 2
|
||||||
mouse_default_cursor_shape = 2
|
mouse_default_cursor_shape = 2
|
||||||
theme_type_variation = &"ValueSlider"
|
theme_type_variation = &"ValueSlider"
|
||||||
min_value = 1.0
|
min_value = 1.0
|
||||||
max_value = 10.0
|
max_value = 128.0
|
||||||
value = 1.0
|
value = 1.0
|
||||||
allow_greater = true
|
allow_greater = true
|
||||||
nine_patch_stretch = true
|
nine_patch_stretch = true
|
||||||
|
@ -561,6 +559,7 @@ stretch_margin_top = 3
|
||||||
stretch_margin_right = 3
|
stretch_margin_right = 3
|
||||||
stretch_margin_bottom = 3
|
stretch_margin_bottom = 3
|
||||||
script = ExtResource("5")
|
script = ExtResource("5")
|
||||||
|
snap_step = 2.0
|
||||||
|
|
||||||
[node name="MeshOffsetLabel" type="Label" parent="ObjectOptions/MeshOptions/GridContainer" index="26"]
|
[node name="MeshOffsetLabel" type="Label" parent="ObjectOptions/MeshOptions/GridContainer" index="26"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
@ -614,10 +613,9 @@ unique_name_in_owner = true
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
mouse_default_cursor_shape = 2
|
mouse_default_cursor_shape = 2
|
||||||
item_count = 3
|
|
||||||
selected = 0
|
selected = 0
|
||||||
|
item_count = 3
|
||||||
popup/item_0/text = "Left"
|
popup/item_0/text = "Left"
|
||||||
popup/item_0/id = 0
|
|
||||||
popup/item_1/text = "Center"
|
popup/item_1/text = "Center"
|
||||||
popup/item_1/id = 1
|
popup/item_1/id = 1
|
||||||
popup/item_2/text = "Right"
|
popup/item_2/text = "Right"
|
||||||
|
@ -634,10 +632,9 @@ unique_name_in_owner = true
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
mouse_default_cursor_shape = 2
|
mouse_default_cursor_shape = 2
|
||||||
item_count = 3
|
|
||||||
selected = 0
|
selected = 0
|
||||||
|
item_count = 3
|
||||||
popup/item_0/text = "Top"
|
popup/item_0/text = "Top"
|
||||||
popup/item_0/id = 0
|
|
||||||
popup/item_1/text = "Center"
|
popup/item_1/text = "Center"
|
||||||
popup/item_1/id = 1
|
popup/item_1/id = 1
|
||||||
popup/item_2/text = "Bottom"
|
popup/item_2/text = "Bottom"
|
||||||
|
|
Loading…
Reference in a new issue