Преглед на файлове

assure a minimum pointCount of 2

perkma преди 4 години
родител
ревизия
6419e92e13
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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
 
 		}