mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Merge branch 'master' of https://github.com/godotengine/godot
This commit is contained in:
commit
76c2e8583e
18 changed files with 217 additions and 138 deletions
|
|
@ -103,13 +103,13 @@ void GridMapEditor::_menu_option(int p_option) {
|
|||
if (input_action==INPUT_DUPLICATE) {
|
||||
|
||||
r.set_orthogonal_index(selection.duplicate_rot);
|
||||
r.rotate(Vector3(0,1,0),Math_PI/2.0);
|
||||
r.rotate(Vector3(0,1,0),-Math_PI/2.0);
|
||||
selection.duplicate_rot=r.get_orthogonal_index();
|
||||
_update_duplicate_indicator();
|
||||
break;
|
||||
}
|
||||
r.set_orthogonal_index(cursor_rot);
|
||||
r.rotate(Vector3(0,1,0),Math_PI/2.0);
|
||||
r.rotate(Vector3(0,1,0),-Math_PI/2.0);
|
||||
cursor_rot=r.get_orthogonal_index();
|
||||
_update_cursor_transform();
|
||||
} break;
|
||||
|
|
@ -118,14 +118,14 @@ void GridMapEditor::_menu_option(int p_option) {
|
|||
if (input_action==INPUT_DUPLICATE) {
|
||||
|
||||
r.set_orthogonal_index(selection.duplicate_rot);
|
||||
r.rotate(Vector3(1,0,0),Math_PI/2.0);
|
||||
r.rotate(Vector3(1,0,0),-Math_PI/2.0);
|
||||
selection.duplicate_rot=r.get_orthogonal_index();
|
||||
_update_duplicate_indicator();
|
||||
break;
|
||||
}
|
||||
|
||||
r.set_orthogonal_index(cursor_rot);
|
||||
r.rotate(Vector3(1,0,0),Math_PI/2.0);
|
||||
r.rotate(Vector3(1,0,0),-Math_PI/2.0);
|
||||
cursor_rot=r.get_orthogonal_index();
|
||||
_update_cursor_transform();
|
||||
} break;
|
||||
|
|
@ -134,35 +134,35 @@ void GridMapEditor::_menu_option(int p_option) {
|
|||
if (input_action==INPUT_DUPLICATE) {
|
||||
|
||||
r.set_orthogonal_index(selection.duplicate_rot);
|
||||
r.rotate(Vector3(0,0,1),Math_PI/2.0);
|
||||
r.rotate(Vector3(0,0,1),-Math_PI/2.0);
|
||||
selection.duplicate_rot=r.get_orthogonal_index();
|
||||
_update_duplicate_indicator();
|
||||
break;
|
||||
}
|
||||
|
||||
r.set_orthogonal_index(cursor_rot);
|
||||
r.rotate(Vector3(0,0,1),Math_PI/2.0);
|
||||
r.rotate(Vector3(0,0,1),-Math_PI/2.0);
|
||||
cursor_rot=r.get_orthogonal_index();
|
||||
_update_cursor_transform();
|
||||
} break;
|
||||
case MENU_OPTION_CURSOR_BACK_ROTATE_Y: {
|
||||
Matrix3 r;
|
||||
r.set_orthogonal_index(cursor_rot);
|
||||
r.rotate(Vector3(0,1,0),-Math_PI/2.0);
|
||||
r.rotate(Vector3(0,1,0),Math_PI/2.0);
|
||||
cursor_rot=r.get_orthogonal_index();
|
||||
_update_cursor_transform();
|
||||
} break;
|
||||
case MENU_OPTION_CURSOR_BACK_ROTATE_X: {
|
||||
Matrix3 r;
|
||||
r.set_orthogonal_index(cursor_rot);
|
||||
r.rotate(Vector3(1,0,0),-Math_PI/2.0);
|
||||
r.rotate(Vector3(1,0,0),Math_PI/2.0);
|
||||
cursor_rot=r.get_orthogonal_index();
|
||||
_update_cursor_transform();
|
||||
} break;
|
||||
case MENU_OPTION_CURSOR_BACK_ROTATE_Z: {
|
||||
Matrix3 r;
|
||||
r.set_orthogonal_index(cursor_rot);
|
||||
r.rotate(Vector3(0,0,1),-Math_PI/2.0);
|
||||
r.rotate(Vector3(0,0,1),Math_PI/2.0);
|
||||
cursor_rot=r.get_orthogonal_index();
|
||||
_update_cursor_transform();
|
||||
} break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue