Browse Source

Editor: Remove dependency to deleted `ColladaExporter`. (#26243)

Michael Herzog 2 years ago
parent
commit
61acd4c884
3 changed files with 0 additions and 24 deletions
  1. 0 20
      editor/js/Menubar.File.js
  2. 0 3
      editor/js/Strings.js
  3. 0 1
      editor/sw.js

+ 0 - 20
editor/js/Menubar.File.js

@@ -178,26 +178,6 @@ function MenubarFile( editor ) {
 
 	options.add( new UIHorizontalRule() );
 
-	// Export DAE
-
-	option = new UIRow();
-	option.setClass( 'option' );
-	option.setTextContent( strings.getKey( 'menubar/file/export/dae' ) );
-	option.onClick( async function () {
-
-		const { ColladaExporter } = await import( 'three/addons/exporters/ColladaExporter.js' );
-
-		const exporter = new ColladaExporter();
-
-		exporter.parse( editor.scene, function ( result ) {
-
-			saveString( result.data, 'scene.dae' );
-
-		} );
-
-	} );
-	options.add( option );
-
 	// Export DRC
 
 	option = new UIRow();

+ 0 - 3
editor/js/Strings.js

@@ -12,7 +12,6 @@ function Strings( config ) {
 			'menubar/file/export/geometry': 'Export Geometry',
 			'menubar/file/export/object': 'Export Object',
 			'menubar/file/export/scene': 'Export Scene',
-			'menubar/file/export/dae': 'Export DAE',
 			'menubar/file/export/drc': 'Export DRC',
 			'menubar/file/export/glb': 'Export GLB',
 			'menubar/file/export/gltf': 'Export GLTF',
@@ -364,7 +363,6 @@ function Strings( config ) {
 			'menubar/file/export/geometry': 'Exporter Geometrie',
 			'menubar/file/export/object': 'Exporter Objet',
 			'menubar/file/export/scene': 'Exporter Scene',
-			'menubar/file/export/dae': 'Exporter DAE',
 			'menubar/file/export/drc': 'Exporter DRC',
 			'menubar/file/export/glb': 'Exporter GLB',
 			'menubar/file/export/gltf': 'Exporter GLTF',
@@ -716,7 +714,6 @@ function Strings( config ) {
 			'menubar/file/export/geometry': '导出几何体',
 			'menubar/file/export/object': '导出物体',
 			'menubar/file/export/scene': '导出场景',
-			'menubar/file/export/dae': '导出DAE',
 			'menubar/file/export/drc': '导出DRC',
 			'menubar/file/export/glb': '导出GLB',
 			'menubar/file/export/gltf': '导出GLTF',

+ 0 - 1
editor/sw.js

@@ -67,7 +67,6 @@ const assets = [
 
 	'../examples/jsm/environments/RoomEnvironment.js',
 
-	'../examples/jsm/exporters/ColladaExporter.js',
 	'../examples/jsm/exporters/DRACOExporter.js',
 	'../examples/jsm/exporters/GLTFExporter.js',
 	'../examples/jsm/exporters/OBJExporter.js',