aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/spatial_editor_plugin.cpp
diff options
context:
space:
mode:
authorHubert Jarosz2016-03-09 00:00:52 +0100
committerRémi Verschelde2016-04-02 22:03:48 +0200
commit424a1046664eb1dc8138ccb886ba1c1967c3caa4 (patch)
tree650074feb39a8237875bfa0ef0ea842e8d96f41c /tools/editor/plugins/spatial_editor_plugin.cpp
parent830947feafc5e3af452296ff80a6418e9c56c5d2 (diff)
downloadgodot-424a1046664eb1dc8138ccb886ba1c1967c3caa4.tar.gz
godot-424a1046664eb1dc8138ccb886ba1c1967c3caa4.tar.zst
godot-424a1046664eb1dc8138ccb886ba1c1967c3caa4.zip
remove trailing whitespace
(cherry picked from commit 4a4f2479146aa33e235ed57cde311efda68d3c8f)
Diffstat (limited to 'tools/editor/plugins/spatial_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/spatial_editor_plugin.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/tools/editor/plugins/spatial_editor_plugin.cpp b/tools/editor/plugins/spatial_editor_plugin.cpp
index bc57fd7e4..a90ae4186 100644
--- a/tools/editor/plugins/spatial_editor_plugin.cpp
+++ b/tools/editor/plugins/spatial_editor_plugin.cpp
@@ -1265,7 +1265,7 @@ void SpatialEditorViewport::_sinput(const InputEvent &p_event) {
} else if (m.button_mask&1) {
if (nav_scheme == NAVIGATION_MAYA && m.mod.alt) {
- nav_mode = NAVIGATION_ORBIT;
+ nav_mode = NAVIGATION_ORBIT;
} else if (nav_scheme == NAVIGATION_MODO && m.mod.alt && m.mod.shift) {
nav_mode = NAVIGATION_PAN;
} else if (nav_scheme == NAVIGATION_MODO && m.mod.alt && m.mod.control) {
@@ -2606,15 +2606,15 @@ void SpatialEditor::_generate_selection_box() {
aabb.grow_by( aabb.get_longest_axis_size()/20.0 );
Ref<SurfaceTool> st = memnew( SurfaceTool );
-
+
st->begin(Mesh::PRIMITIVE_LINES);
for (int i=0;i<12;i++) {
-
+
Vector3 a,b;
- aabb.get_edge(i,a,b);
-
+ aabb.get_edge(i,a,b);
+
/*Vector<Vector3> points;
- Vector<Color> colors;
+ Vector<Color> colors;
points.push_back(a);
points.push_back(b);*/
@@ -2804,7 +2804,7 @@ void SpatialEditor::set_state(const Dictionary& p_state) {
void SpatialEditor::edit(Spatial *p_spatial) {
-
+
if (p_spatial!=selected) {
if (selected) {
@@ -2836,8 +2836,8 @@ void SpatialEditor::edit(Spatial *p_spatial) {
// should become the selection
}
-
-
+
+
}
void SpatialEditor::_xform_dialog_action() {
@@ -4170,7 +4170,7 @@ SpatialEditor::~SpatialEditor() {
void SpatialEditorPlugin::make_visible(bool p_visible) {
if (p_visible) {
-
+
spatial_editor->show();
spatial_editor->set_process(true);
@@ -4178,7 +4178,7 @@ void SpatialEditorPlugin::make_visible(bool p_visible) {
spatial_editor->grab_focus();
} else {
-
+
spatial_editor->hide();
spatial_editor->set_process(false);
//VisualServer::get_singleton()->viewport_set_hide_scenario(editor->get_scene_root()->get_viewport(),true);
@@ -4192,7 +4192,7 @@ void SpatialEditorPlugin::edit(Object *p_object) {
}
bool SpatialEditorPlugin::handles(Object *p_object) const {
-
+
return p_object->is_type("Spatial");
}
@@ -4226,7 +4226,7 @@ void SpatialEditorPlugin::snap_cursor_to_plane(const Plane& p_plane) {
SpatialEditorPlugin::SpatialEditorPlugin(EditorNode *p_node) {
-
+
editor=p_node;
spatial_editor = memnew( SpatialEditor(p_node) );
spatial_editor->set_v_size_flags(Control::SIZE_EXPAND_FILL);
@@ -4241,7 +4241,7 @@ SpatialEditorPlugin::SpatialEditorPlugin(EditorNode *p_node) {
SpatialEditorPlugin::~SpatialEditorPlugin() {
-
+
}