diff options
author | BenH <sketchyfun@gmail.com> | 2017-11-25 20:14:54 +0000 |
---|---|---|
committer | BenH <sketchyfun@gmail.com> | 2017-11-25 20:14:54 +0000 |
commit | dd5037ba829b02ec8ab6f6d77f7ad132b0515908 (patch) | |
tree | 07e3d8a356c647da193474455bea271d81b31b46 | |
parent | 9738ebcda047fd9b4ddf71a0da5d682ade1a2666 (diff) |
Fixed issue with 3D selections losing precsion due to an offset bug
-rw-r--r-- | servers/visual/visual_server_scene.cpp | 2 |
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]; |