From 4b1abe1e13f9615870b390472c7ce108ccb1c680 Mon Sep 17 00:00:00 2001 From: Leon Palluch Date: Sat, 1 Feb 2020 17:01:21 +0100 Subject: [PATCH] fixed unfixed fix --- BodyConfig/bodyBuildingScript.gd | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/BodyConfig/bodyBuildingScript.gd b/BodyConfig/bodyBuildingScript.gd index 2dbc13e..23c5e02 100644 --- a/BodyConfig/bodyBuildingScript.gd +++ b/BodyConfig/bodyBuildingScript.gd @@ -75,19 +75,18 @@ func _physics_process(delta): func _input(event): - if _viewport.get_viewport().get_mouse_position().x >= 0: - if event is InputEventMouseButton: - if event.pressed: + if event is InputEventMouseButton: + if event.pressed: + if _viewport.get_viewport().get_mouse_position().x >= 0: if event.button_index == BUTTON_WHEEL_UP: _attachment_point.get_node("Limb").rotate_z(0.1) elif event.button_index == BUTTON_WHEEL_DOWN: _attachment_point.get_node("Limb").rotate_z(-0.1) else: - print("Mouse Click at: ", event.position) _prev_mouse_pos = event.position _viewRot = true - else: - _viewRot = false + else: + _viewRot = false func body_part_chosen(params):