summaryrefslogtreecommitdiff
path: root/servers/visual
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-11-26 14:55:56 +0100
committerGitHub <noreply@github.com>2017-11-26 14:55:56 +0100
commitb0e556d1a73981c00d24cabc3f0fc686e8999023 (patch)
treeeace1771a5f3795e615478c76fcaaf46b7348f4a /servers/visual
parent304d31b7d2d0bdd8a2b77cb26451b1d9d18e9b52 (diff)
parentdd5037ba829b02ec8ab6f6d77f7ad132b0515908 (diff)
Merge pull request #13289 from sketchyfun/3d_selection_fix
Fixed issue with 3D selections
Diffstat (limited to 'servers/visual')
-rw-r--r--servers/visual/visual_server_scene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/visual_server_scene.cpp b/servers/visual/visual_server_scene.cpp
index 2f47a0ca14..69827b330d 100644
--- a/servers/visual/visual_server_scene.cpp
+++ b/servers/visual/visual_server_scene.cpp
@@ -677,7 +677,7 @@ Vector<ObjectID> VisualServerScene::instances_cull_ray(const Vector3 &p_from, co
int culled = 0;
Instance *cull[1024];
- culled = scenario->octree.cull_segment(p_from, p_to * 10000, cull, 1024);
+ culled = scenario->octree.cull_segment(p_from, p_from + p_to * 10000, cull, 1024);
for (int i = 0; i < culled; i++) {
Instance *instance = cull[i];