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

Examples: Remove remaining depdency checks. (#25052)

Michael Herzog преди 2 години
родител
ревизия
03bfe65e71
променени са 2 файла, в които са добавени 0 реда и са изтрити 13 реда
  1. 0 6
      examples/jsm/geometries/ConvexGeometry.js
  2. 0 7
      examples/jsm/loaders/FBXLoader.js

+ 0 - 6
examples/jsm/geometries/ConvexGeometry.js

@@ -15,12 +15,6 @@ class ConvexGeometry extends BufferGeometry {
 		const vertices = [];
 		const vertices = [];
 		const normals = [];
 		const normals = [];
 
 
-		if ( ConvexHull === undefined ) {
-
-			console.error( 'THREE.ConvexGeometry: ConvexGeometry relies on ConvexHull' );
-
-		}
-
 		const convexHull = new ConvexHull().setFromPoints( points );
 		const convexHull = new ConvexHull().setFromPoints( points );
 
 
 		// generate vertices and normals
 		// generate vertices and normals

+ 0 - 7
examples/jsm/loaders/FBXLoader.js

@@ -2271,13 +2271,6 @@ class GeometryParser {
 	// Generate a NurbGeometry from a node in FBXTree.Objects.Geometry
 	// Generate a NurbGeometry from a node in FBXTree.Objects.Geometry
 	parseNurbsGeometry( geoNode ) {
 	parseNurbsGeometry( geoNode ) {
 
 
-		if ( NURBSCurve === undefined ) {
-
-			console.error( 'THREE.FBXLoader: The loader relies on NURBSCurve for any nurbs present in the model. Nurbs will show up as empty geometry.' );
-			return new BufferGeometry();
-
-		}
-
 		const order = parseInt( geoNode.Order );
 		const order = parseInt( geoNode.Order );
 
 
 		if ( isNaN( order ) ) {
 		if ( isNaN( order ) ) {