Pārlūkot izejas kodu

Merge pull request #20692 from perkma/bugload3dm

3DMLoader: Assure a minimum pointCount of 2.
Mr.doob 4 gadi atpakaļ
vecāks
revīzija
f43ec7c849
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      examples/jsm/loaders/3DMLoader.js

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

@@ -1318,7 +1318,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
 
 		}