Przeglądaj źródła

Merge pull request #13289 from sketchyfun/3d_selection_fix

Fixed issue with 3D selections
Rémi Verschelde 7 lat temu
rodzic
commit
b0e556d1a7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      servers/visual/visual_server_scene.cpp

+ 1 - 1
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];