Fixed reactivation problems
This commit is contained in:
@@ -126,14 +126,16 @@ func mouse_press(position):
|
||||
if mode == 0:
|
||||
print("get closest building")
|
||||
$WorldEditor.editor_command("get_closest_building", [Transform(Basis(), proj)])
|
||||
elif mode == 1:
|
||||
$WorldEditor.editor_command("checkpoint", [])
|
||||
elif mode == 2:
|
||||
$WorldEditor.editor_command("checkpoint", [])
|
||||
var m = proj
|
||||
m.y = selected_building_xform.origin.y
|
||||
var xform = selected_building_xform.looking_at(m, Vector3.UP)
|
||||
$WorldEditor.editor_command("update_building_transform", [selected_building, xform])
|
||||
$building_rot_cursor.global_transform = xform
|
||||
selected_building_xform = xform
|
||||
$WorldEditor.editor_command("buildings_checkpoint", [])
|
||||
|
||||
var selected_building
|
||||
var selected_building_xform
|
||||
|
||||
@@ -195,7 +195,7 @@ text = "POI mode"
|
||||
unique_name_in_owner = true
|
||||
margin_top = 330.0
|
||||
margin_right = 160.0
|
||||
margin_bottom = 356.0
|
||||
margin_bottom = 456.0
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/v_road_lines"]
|
||||
margin_right = 160.0
|
||||
@@ -211,13 +211,15 @@ text = "Road Lines mode"
|
||||
unique_name_in_owner = true
|
||||
margin_top = 26.0
|
||||
margin_right = 160.0
|
||||
margin_bottom = 26.0
|
||||
margin_bottom = 126.0
|
||||
rect_min_size = Vector2( 0, 100 )
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="v_npc" type="VBoxContainer" parent="VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
margin_top = 360.0
|
||||
margin_top = 460.0
|
||||
margin_right = 160.0
|
||||
margin_bottom = 382.0
|
||||
margin_bottom = 482.0
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/v_npc"]
|
||||
margin_right = 160.0
|
||||
|
||||
Reference in New Issue
Block a user