From 9421298ba4e70c983dcb153d4be4d32e0fc660a7 Mon Sep 17 00:00:00 2001 From: Garrett Johnson Date: Sun, 12 Jan 2025 18:58:37 +0900 Subject: [PATCH] Remove deprecated extensions from core --- src/index.js | 3 --- src/three/loaders/GLTFExtensionLoader.js | 3 --- src/three/loaders/gltf/GLTFCesiumRTCExtension.js | 12 ------------ src/three/loaders/gltf/GLTFMeshFeaturesExtension.js | 12 ------------ .../loaders/gltf/GLTFStructuralMetadataExtension.js | 12 ------------ 5 files changed, 42 deletions(-) delete mode 100644 src/three/loaders/gltf/GLTFCesiumRTCExtension.js delete mode 100644 src/three/loaders/gltf/GLTFMeshFeaturesExtension.js delete mode 100644 src/three/loaders/gltf/GLTFStructuralMetadataExtension.js diff --git a/src/index.js b/src/index.js index 2369f2631..a96538313 100644 --- a/src/index.js +++ b/src/index.js @@ -4,9 +4,6 @@ export { B3DMLoader } from './three/loaders/B3DMLoader.js'; export { PNTSLoader } from './three/loaders/PNTSLoader.js'; export { I3DMLoader } from './three/loaders/I3DMLoader.js'; export { CMPTLoader } from './three/loaders/CMPTLoader.js'; -export { GLTFCesiumRTCExtension } from './three/loaders/gltf/GLTFCesiumRTCExtension.js'; -export { GLTFStructuralMetadataExtension } from './three/loaders/gltf/GLTFStructuralMetadataExtension.js'; -export { GLTFMeshFeaturesExtension } from './three/loaders/gltf/GLTFMeshFeaturesExtension.js'; export { GLTFExtensionLoader } from './three/loaders/GLTFExtensionLoader.js'; export * from './three/math/Ellipsoid.js'; diff --git a/src/three/loaders/GLTFExtensionLoader.js b/src/three/loaders/GLTFExtensionLoader.js index 64fd2555f..343663601 100644 --- a/src/three/loaders/GLTFExtensionLoader.js +++ b/src/three/loaders/GLTFExtensionLoader.js @@ -1,7 +1,6 @@ import { DefaultLoadingManager } from 'three'; import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js'; import { LoaderBase } from '../../base/loaders/LoaderBase.js'; -import { GLTFCesiumRTCExtension } from './gltf/GLTFCesiumRTCExtension.js'; export class GLTFExtensionLoader extends LoaderBase { @@ -24,8 +23,6 @@ export class GLTFExtensionLoader extends LoaderBase { loader = new GLTFLoader( manager ); - loader.register( () => new GLTFCesiumRTCExtension() ); - } if ( fetchOptions.credentials === 'include' && fetchOptions.mode === 'cors' ) { diff --git a/src/three/loaders/gltf/GLTFCesiumRTCExtension.js b/src/three/loaders/gltf/GLTFCesiumRTCExtension.js deleted file mode 100644 index 51c011cca..000000000 --- a/src/three/loaders/gltf/GLTFCesiumRTCExtension.js +++ /dev/null @@ -1,12 +0,0 @@ -import { GLTFCesiumRTCExtension as GLTFCesiumRTCExtensionImpl } from '../../../plugins/index.js'; - -export class GLTFCesiumRTCExtension extends GLTFCesiumRTCExtensionImpl { - - constructor( ...args ) { - - super( ...args ); - console.warn( 'GLTFCesiumRTCExtension: Plugins should now be imported from "3d-tiles-renderer/plugins" path.' ); - - } - -} diff --git a/src/three/loaders/gltf/GLTFMeshFeaturesExtension.js b/src/three/loaders/gltf/GLTFMeshFeaturesExtension.js deleted file mode 100644 index b000c3aa8..000000000 --- a/src/three/loaders/gltf/GLTFMeshFeaturesExtension.js +++ /dev/null @@ -1,12 +0,0 @@ -import { GLTFMeshFeaturesExtension as GLTFMeshFeaturesExtensionImpl } from '../../../plugins/index.js'; - -export class GLTFMeshFeaturesExtension extends GLTFMeshFeaturesExtensionImpl { - - constructor( ...args ) { - - super( ...args ); - console.warn( 'GLTFMeshFeaturesExtension: Plugins should now be imported from "3d-tiles-renderer/plugins" path.' ); - - } - -} diff --git a/src/three/loaders/gltf/GLTFStructuralMetadataExtension.js b/src/three/loaders/gltf/GLTFStructuralMetadataExtension.js deleted file mode 100644 index 55833f3ff..000000000 --- a/src/three/loaders/gltf/GLTFStructuralMetadataExtension.js +++ /dev/null @@ -1,12 +0,0 @@ -import { GLTFStructuralMetadataExtension as GLTFStructuralMetadataExtensionImpl } from '../../../plugins/index.js'; - -export class GLTFStructuralMetadataExtension extends GLTFStructuralMetadataExtensionImpl { - - constructor( ...args ) { - - super( ...args ); - console.warn( 'GLTFStructuralMetadataExtension: Plugins should now be imported from "3d-tiles-renderer/plugins" path.' ); - - } - -}