Using lines cursor
This commit is contained in:
@@ -278,16 +278,8 @@ void WorldEditor::_notification(int which)
|
||||
if (!cam)
|
||||
return;
|
||||
float delta = get_physics_process_delta_time();
|
||||
if (Input::get_singleton()->is_action_just_pressed(
|
||||
"editor_cam1"))
|
||||
set_camera_mode(1);
|
||||
if (Input::get_singleton()->is_action_just_pressed(
|
||||
"editor_cam2"))
|
||||
set_camera_mode(2);
|
||||
if (Input::get_singleton()->is_action_just_pressed(
|
||||
"editor_cam3"))
|
||||
set_camera_mode(3);
|
||||
if (dragging) {
|
||||
/* Stop drag mode is mouse1 no longer pressed */
|
||||
if (!Input::get_singleton()->is_action_pressed(
|
||||
"mouse1")) {
|
||||
dragging = false;
|
||||
@@ -299,7 +291,6 @@ void WorldEditor::_notification(int which)
|
||||
emit_signal("editor_event", "mouse_drag_off",
|
||||
args);
|
||||
}
|
||||
} else {
|
||||
}
|
||||
Transform cam_xform = cam->get_global_transform();
|
||||
if (current_camera_mode == 1) {
|
||||
@@ -355,6 +346,12 @@ void WorldEditor::_notification(int which)
|
||||
|
||||
void WorldEditor::_unhandled_input(const Ref<InputEvent> &event)
|
||||
{
|
||||
if (Input::get_singleton()->is_action_just_pressed("editor_cam1"))
|
||||
set_camera_mode(1);
|
||||
if (Input::get_singleton()->is_action_just_pressed("editor_cam2"))
|
||||
set_camera_mode(2);
|
||||
if (Input::get_singleton()->is_action_just_pressed("editor_cam3"))
|
||||
set_camera_mode(3);
|
||||
if (current_camera_mode != 1) {
|
||||
Ref<InputEventMouseMotion> motionevt = event;
|
||||
if (motionevt.is_valid())
|
||||
|
||||
Reference in New Issue
Block a user