feat(wip): implementing edit history and un-re-do

This commit is contained in:
Sara Gerretsen 2025-11-20 23:33:46 +01:00
parent b875c2089b
commit e2926f7c3f
6 changed files with 90 additions and 3 deletions

View file

@ -23,9 +23,9 @@ func _input(event: InputEvent) -> void:
func _input_event(_camera: Camera3D, event: InputEvent, _event_position: Vector3, _normal: Vector3, _shape_idx: int) -> void:
if not dragged and event is InputEventMouseButton and (event as InputEventMouseButton).is_pressed():
get_viewport().set_input_as_handled()
dragged = true
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
get_viewport().set_input_as_handled()
"
[sub_resource type="CylinderShape3D" id="CylinderShape3D_mx0s0"]