Parcourir la source

Merge pull request #20692 from perkma/bugload3dm

3DMLoader: Assure a minimum pointCount of 2.
Mr.doob il y a 4 ans
Parent
commit
f43ec7c849
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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
 
 		}