2
0
Эх сурвалжийг харах

Fix error in BoxHelper with non-geometric object

dubejf 10 жил өмнө
parent
commit
cd2e24938f

+ 2 - 0
src/extras/helpers/BoxHelper.js

@@ -28,6 +28,8 @@ THREE.BoxHelper.prototype.update = ( function () {
 
 		box.setFromObject( object );
 
+		if ( box.empty() ) return;
+
 		var min = box.min;
 		var max = box.max;