You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
@@ -1120,7 +1120,7 @@ void EditorNode::_dialog_action(String p_file) {
|
||||
Globals::get_singleton()->set("application/main_scene", p_file);
|
||||
Globals::get_singleton()->set_persisting("application/main_scene", true);
|
||||
Globals::get_singleton()->save();
|
||||
//would be nice to show the project manager opened with the hilighted field..
|
||||
//would be nice to show the project manager opened with the highlighted field..
|
||||
} break;
|
||||
case FILE_SAVE_OPTIMIZED: {
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@ bool SpatialEditorViewport::_gizmo_select(const Vector2 &p_screenpos, bool p_hil
|
||||
return false;
|
||||
if (get_selected_count() == 0) {
|
||||
if (p_hilite_only)
|
||||
spatial_editor->select_gizmo_hilight_axis(-1);
|
||||
spatial_editor->select_gizmo_highlight_axis(-1);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -629,7 +629,7 @@ bool SpatialEditorViewport::_gizmo_select(const Vector2 &p_screenpos, bool p_hil
|
||||
|
||||
if (p_hilite_only) {
|
||||
|
||||
spatial_editor->select_gizmo_hilight_axis(col_axis);
|
||||
spatial_editor->select_gizmo_highlight_axis(col_axis);
|
||||
|
||||
} else {
|
||||
//handle rotate
|
||||
@@ -669,7 +669,7 @@ bool SpatialEditorViewport::_gizmo_select(const Vector2 &p_screenpos, bool p_hil
|
||||
|
||||
if (p_hilite_only) {
|
||||
|
||||
spatial_editor->select_gizmo_hilight_axis(col_axis + 3);
|
||||
spatial_editor->select_gizmo_highlight_axis(col_axis + 3);
|
||||
} else {
|
||||
//handle rotate
|
||||
_edit.mode = TRANSFORM_ROTATE;
|
||||
@@ -681,7 +681,7 @@ bool SpatialEditorViewport::_gizmo_select(const Vector2 &p_screenpos, bool p_hil
|
||||
}
|
||||
|
||||
if (p_hilite_only)
|
||||
spatial_editor->select_gizmo_hilight_axis(-1);
|
||||
spatial_editor->select_gizmo_highlight_axis(-1);
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -1140,7 +1140,7 @@ void SpatialEditorViewport::_sinput(const InputEvent &p_event) {
|
||||
spatial_editor->set_over_gizmo_handle(selected_handle);
|
||||
spatial_editor->get_selected()->update_gizmo();
|
||||
if (selected_handle != -1)
|
||||
spatial_editor->select_gizmo_hilight_axis(-1);
|
||||
spatial_editor->select_gizmo_highlight_axis(-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2271,7 +2271,7 @@ SpatialEditorSelectedItem::~SpatialEditorSelectedItem() {
|
||||
VisualServer::get_singleton()->free(sbox_instance);
|
||||
}
|
||||
|
||||
void SpatialEditor::select_gizmo_hilight_axis(int p_axis) {
|
||||
void SpatialEditor::select_gizmo_highlight_axis(int p_axis) {
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
|
||||
|
||||
@@ -484,7 +484,7 @@ public:
|
||||
|
||||
void update_transform_gizmo();
|
||||
|
||||
void select_gizmo_hilight_axis(int p_axis);
|
||||
void select_gizmo_highlight_axis(int p_axis);
|
||||
void set_custom_camera(Node *p_camera) { custom_camera = p_camera; }
|
||||
|
||||
void set_undo_redo(UndoRedo *p_undo_redo) { undo_redo = p_undo_redo; }
|
||||
|
||||
Reference in New Issue
Block a user