Explorar el Código

assure a minimum pointCount of 2

perkma hace 4 años
padre
commit
6419e92e13
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/jsm/loaders/3DMLoader.js

+ 1 - 1
examples/jsm/loaders/3DMLoader.js

@@ -1303,7 +1303,7 @@ Rhino3dmLoader.Rhino3dmWorker = function () {
 		if ( curve instanceof rhino.ArcCurve ) {
 
 			pointCount = Math.floor( curve.angleDegrees / 5 );
-			pointCount = pointCount < 1 ? 2 : pointCount;
+			pointCount = pointCount < 2 ? 2 : pointCount;
 			// alternative to this hardcoded version: https://stackoverflow.com/a/18499923/2179399
 
 		}