From 6c526e895f72e088751bc1f6125635f2058e481b Mon Sep 17 00:00:00 2001 From: Leon Palluch Date: Sun, 2 Feb 2020 16:17:07 +0100 Subject: [PATCH] disabled limb rotation --- BodyConfig/bodyBuildingScript.gd | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/BodyConfig/bodyBuildingScript.gd b/BodyConfig/bodyBuildingScript.gd index 553f457..3631df0 100644 --- a/BodyConfig/bodyBuildingScript.gd +++ b/BodyConfig/bodyBuildingScript.gd @@ -119,15 +119,15 @@ func _input(event): if event is InputEventMouseButton: if event.pressed: if _viewport.get_viewport().get_mouse_position().x >= 0: - if event.button_index == BUTTON_WHEEL_UP and _attachment_point != null: - if _attachment_point.get_node("Limb") != null: - _attachment_point.get_node("Limb").rotate_z(0.1) - elif event.button_index == BUTTON_WHEEL_DOWN and _attachment_point != null: - if _attachment_point.get_node("Limb") != null: - _attachment_point.get_node("Limb").rotate_z(-0.1) - else: - _prev_mouse_pos = event.position - _viewRot = true +# if event.button_index == BUTTON_WHEEL_UP and _attachment_point != null: +# if _attachment_point.get_node("Limb") != null: +# _attachment_point.get_node("Limb").rotate_z(0.1) +# elif event.button_index == BUTTON_WHEEL_DOWN and _attachment_point != null: +# if _attachment_point.get_node("Limb") != null: +# _attachment_point.get_node("Limb").rotate_z(-0.1) +# else: + _prev_mouse_pos = event.position + _viewRot = true else: _viewRot = false