summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorsupaiku <supaiku@protonmail.com>2017-04-06 17:35:08 +0200
committersupaiku <supaiku@protonmail.com>2017-04-06 17:35:08 +0200
commitd51fe99a8b6daa3ec6495a5b3e27b63d752c3783 (patch)
tree89635735fd5c67081dbc46932d82a26f777094f6 /editor/plugins
parent0ede0302ba15b672b4dc50d04f9eb737ff3b3dc3 (diff)
Fix highlight typo
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/spatial_editor_plugin.cpp12
-rw-r--r--editor/plugins/spatial_editor_plugin.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp
index c00652bc35..d642a3c468 100644
--- a/editor/plugins/spatial_editor_plugin.cpp
+++ b/editor/plugins/spatial_editor_plugin.cpp
@@ -524,7 +524,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;
}
@@ -558,7 +558,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
@@ -598,7 +598,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;
@@ -610,7 +610,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;
}
@@ -1069,7 +1069,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);
}
}
}
@@ -2229,7 +2229,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++) {
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h
index e0d2a38956..734057dc90 100644
--- a/editor/plugins/spatial_editor_plugin.h
+++ b/editor/plugins/spatial_editor_plugin.h
@@ -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; }