Merge pull request #13289 from sketchyfun/3d_selection_fix

Fixed issue with 3D selections
This commit is contained in:
Rémi Verschelde 2017-11-26 14:55:56 +01:00 committed by GitHub
commit b0e556d1a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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];