Browse Source

Global: Fix broken imports. (#23293)

Michael Herzog 3 years ago
parent
commit
0c0d4027ee
46 changed files with 95 additions and 48 deletions
  1. 13 2
      docs/scenes/bones-browser.html
  2. 14 2
      docs/scenes/geometry-browser.html
  3. 13 1
      docs/scenes/material-browser.html
  4. 13 1
      editor/index.html
  5. 1 1
      editor/js/Editor.js
  6. 1 1
      editor/js/EditorControls.js
  7. 1 1
      editor/js/Loader.js
  8. 1 1
      editor/js/Menubar.Add.js
  9. 1 1
      editor/js/Menubar.Edit.js
  10. 1 1
      editor/js/Menubar.Examples.js
  11. 1 1
      editor/js/Menubar.File.js
  12. 1 1
      editor/js/Menubar.Status.js
  13. 1 1
      editor/js/Sidebar.Geometry.BoxGeometry.js
  14. 1 1
      editor/js/Sidebar.Geometry.CircleGeometry.js
  15. 1 1
      editor/js/Sidebar.Geometry.CylinderGeometry.js
  16. 1 1
      editor/js/Sidebar.Geometry.DodecahedronGeometry.js
  17. 1 1
      editor/js/Sidebar.Geometry.ExtrudeGeometry.js
  18. 1 1
      editor/js/Sidebar.Geometry.IcosahedronGeometry.js
  19. 1 1
      editor/js/Sidebar.Geometry.LatheGeometry.js
  20. 1 1
      editor/js/Sidebar.Geometry.OctahedronGeometry.js
  21. 1 1
      editor/js/Sidebar.Geometry.PlaneGeometry.js
  22. 1 1
      editor/js/Sidebar.Geometry.RingGeometry.js
  23. 1 1
      editor/js/Sidebar.Geometry.ShapeGeometry.js
  24. 1 1
      editor/js/Sidebar.Geometry.SphereGeometry.js
  25. 1 1
      editor/js/Sidebar.Geometry.TetrahedronGeometry.js
  26. 1 1
      editor/js/Sidebar.Geometry.TorusGeometry.js
  27. 1 1
      editor/js/Sidebar.Geometry.TorusKnotGeometry.js
  28. 1 1
      editor/js/Sidebar.Geometry.TubeGeometry.js
  29. 1 1
      editor/js/Sidebar.Geometry.js
  30. 1 1
      editor/js/Sidebar.Material.MapProperty.js
  31. 1 1
      editor/js/Sidebar.Material.js
  32. 1 1
      editor/js/Sidebar.Object.js
  33. 1 1
      editor/js/Sidebar.Project.Renderer.js
  34. 1 1
      editor/js/Sidebar.Scene.js
  35. 1 1
      editor/js/Viewport.VR.js
  36. 1 1
      editor/js/Viewport.ViewHelper.js
  37. 1 1
      editor/js/Viewport.js
  38. 1 1
      editor/js/commands/AddObjectCommand.js
  39. 1 1
      editor/js/commands/RemoveObjectCommand.js
  40. 1 1
      editor/js/commands/SetGeometryCommand.js
  41. 1 1
      editor/js/commands/SetMaterialCommand.js
  42. 1 1
      editor/js/commands/SetMaterialMapCommand.js
  43. 1 1
      editor/js/commands/SetPositionCommand.js
  44. 1 1
      editor/js/commands/SetRotationCommand.js
  45. 1 1
      editor/js/commands/SetScaleCommand.js
  46. 1 1
      editor/js/libs/ui.three.js

+ 13 - 2
docs/scenes/bones-browser.html

@@ -23,6 +23,18 @@
 	</head>
 	</head>
 	<body>
 	<body>
 
 
+		<!-- Import maps polyfill -->
+		<!-- Remove this when import maps will be widely supported -->
+		<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
+
+		<script type="importmap">
+			{
+				"imports": {
+					"three": "../../build/three.module.js"
+				}
+			}
+		</script>
+
 		<a id='newWindow' href='./bones-browser.html' target='_blank'>Open in New Window</a>
 		<a id='newWindow' href='./bones-browser.html' target='_blank'>Open in New Window</a>
 
 
 		<script type="module">
 		<script type="module">
@@ -42,7 +54,7 @@
 				Vector3,
 				Vector3,
 				Uint16BufferAttribute,
 				Uint16BufferAttribute,
 				WebGLRenderer
 				WebGLRenderer
-			} from '../../build/three.module.js';
+			} from 'three';
 
 
 			import { GUI } from '../../examples/jsm/libs/lil-gui.module.min.js';
 			import { GUI } from '../../examples/jsm/libs/lil-gui.module.min.js';
 			import { OrbitControls } from '../../examples/jsm/controls/OrbitControls.js';
 			import { OrbitControls } from '../../examples/jsm/controls/OrbitControls.js';
@@ -52,7 +64,6 @@
 			const state = {
 			const state = {
 				animateBones: false
 				animateBones: false
 			};
 			};
-			
 
 
 			function initScene() {
 			function initScene() {
 
 

+ 14 - 2
docs/scenes/geometry-browser.html

@@ -23,6 +23,18 @@
 	</head>
 	</head>
 	<body>
 	<body>
 
 
+		<!-- Import maps polyfill -->
+		<!-- Remove this when import maps will be widely supported -->
+		<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
+
+		<script type="importmap">
+			{
+				"imports": {
+					"three": "../../build/three.module.js"
+				}
+			}
+		</script>
+
 		<a id='newWindow' href='./geometry-browser.html' target='_blank'>Open in New Window</a>
 		<a id='newWindow' href='./geometry-browser.html' target='_blank'>Open in New Window</a>
 
 
 		<script type="module">
 		<script type="module">
@@ -62,7 +74,7 @@
 				Vector3,
 				Vector3,
 				WireframeGeometry,
 				WireframeGeometry,
 				WebGLRenderer
 				WebGLRenderer
-			} from '../../build/three.module.js';
+			} from 'three';
 
 
 			import { GUI } from '../../examples/jsm/libs/lil-gui.module.min.js';
 			import { GUI } from '../../examples/jsm/libs/lil-gui.module.min.js';
 			import { OrbitControls } from '../../examples/jsm/controls/OrbitControls.js';
 			import { OrbitControls } from '../../examples/jsm/controls/OrbitControls.js';
@@ -696,7 +708,7 @@
 			}
 			}
 
 
 			//
 			//
-			
+
 			const selectedGeometry = window.location.hash.substring( 1 );
 			const selectedGeometry = window.location.hash.substring( 1 );
 
 
 			if ( guis[ selectedGeometry ] !== undefined ) {
 			if ( guis[ selectedGeometry ] !== undefined ) {

+ 13 - 1
docs/scenes/material-browser.html

@@ -23,11 +23,23 @@
 	</head>
 	</head>
 	<body>
 	<body>
 
 
+		<!-- Import maps polyfill -->
+		<!-- Remove this when import maps will be widely supported -->
+		<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
+
+		<script type="importmap">
+			{
+				"imports": {
+					"three": "../../build/three.module.js"
+				}
+			}
+		</script>
+
 		<a id='newWindow' href='./material-browser.html' target='_blank'>Open in New Window</a>
 		<a id='newWindow' href='./material-browser.html' target='_blank'>Open in New Window</a>
 
 
 		<script type="module">
 		<script type="module">
 
 
-			import * as THREE from '../../build/three.module.js';
+			import * as THREE from 'three';
 			import { GUI } from '../../examples/jsm/libs/lil-gui.module.min.js';
 			import { GUI } from '../../examples/jsm/libs/lil-gui.module.min.js';
 			import { RoomEnvironment } from '../../examples/jsm/environments/RoomEnvironment.js';
 			import { RoomEnvironment } from '../../examples/jsm/environments/RoomEnvironment.js';
 
 

+ 13 - 1
editor/index.html

@@ -45,9 +45,21 @@
 		<script src="js/libs/tern-threejs/threejs.js"></script>
 		<script src="js/libs/tern-threejs/threejs.js"></script>
 		<script src="js/libs/signals.min.js"></script>
 		<script src="js/libs/signals.min.js"></script>
 
 
+		<!-- Import maps polyfill -->
+		<!-- Remove this when import maps will be widely supported -->
+		<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
+
+		<script type="importmap">
+			{
+				"imports": {
+					"three": "../build/three.module.js"
+				}
+			}
+		</script>
+
 		<script type="module">
 		<script type="module">
 
 
-			import * as THREE from '../build/three.module.js';
+			import * as THREE from 'three';
 
 
 			import { Editor } from './js/Editor.js';
 			import { Editor } from './js/Editor.js';
 			import { Viewport } from './js/Viewport.js';
 			import { Viewport } from './js/Viewport.js';

+ 1 - 1
editor/js/Editor.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { Config } from './Config.js';
 import { Config } from './Config.js';
 import { Loader } from './Loader.js';
 import { Loader } from './Loader.js';

+ 1 - 1
editor/js/EditorControls.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 function EditorControls( object, domElement ) {
 function EditorControls( object, domElement ) {
 
 

+ 1 - 1
editor/js/Loader.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { TGALoader } from '../../examples/jsm/loaders/TGALoader.js';
 import { TGALoader } from '../../examples/jsm/loaders/TGALoader.js';
 
 

+ 1 - 1
editor/js/Menubar.Add.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIPanel, UIRow, UIHorizontalRule } from './libs/ui.js';
 import { UIPanel, UIRow, UIHorizontalRule } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Menubar.Edit.js

@@ -1,4 +1,4 @@
-import { Box3, Vector3 } from '../../build/three.module.js';
+import { Box3, Vector3 } from 'three';
 
 
 import { UIPanel, UIRow, UIHorizontalRule } from './libs/ui.js';
 import { UIPanel, UIRow, UIHorizontalRule } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Menubar.Examples.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIPanel, UIRow } from './libs/ui.js';
 import { UIPanel, UIRow } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Menubar.File.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { zipSync, strToU8 } from '../../examples/jsm/libs/fflate.module.js';
 import { zipSync, strToU8 } from '../../examples/jsm/libs/fflate.module.js';
 
 

+ 1 - 1
editor/js/Menubar.Status.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIPanel, UIText } from './libs/ui.js';
 import { UIPanel, UIText } from './libs/ui.js';
 import { UIBoolean } from './libs/ui.three.js';
 import { UIBoolean } from './libs/ui.three.js';

+ 1 - 1
editor/js/Sidebar.Geometry.BoxGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UINumber, UIInteger } from './libs/ui.js';
 import { UIRow, UIText, UINumber, UIInteger } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Geometry.CircleGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Geometry.CylinderGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UICheckbox, UINumber } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UICheckbox, UINumber } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Geometry.DodecahedronGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Geometry.ExtrudeGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UICheckbox, UIButton, UINumber } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UICheckbox, UIButton, UINumber } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Geometry.IcosahedronGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Geometry.LatheGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 import { UIPoints2 } from './libs/ui.three.js';
 import { UIPoints2 } from './libs/ui.three.js';

+ 1 - 1
editor/js/Sidebar.Geometry.OctahedronGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Geometry.PlaneGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Geometry.RingGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Geometry.ShapeGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UIButton } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UIButton } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Geometry.SphereGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Geometry.TetrahedronGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Geometry.TorusGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Geometry.TorusKnotGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Geometry.TubeGeometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIRow, UIText, UIInteger, UISelect, UICheckbox, UINumber } from './libs/ui.js';
 import { UIRow, UIText, UIInteger, UISelect, UICheckbox, UINumber } from './libs/ui.js';
 import { UIPoints3 } from './libs/ui.three.js';
 import { UIPoints3 } from './libs/ui.three.js';

+ 1 - 1
editor/js/Sidebar.Geometry.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIPanel, UIRow, UIText, UIInput, UIButton, UISpan } from './libs/ui.js';
 import { UIPanel, UIRow, UIText, UIInput, UIButton, UISpan } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Material.MapProperty.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UICheckbox, UINumber, UIRow, UIText } from './libs/ui.js';
 import { UICheckbox, UINumber, UIRow, UIText } from './libs/ui.js';
 import { UITexture } from './libs/ui.three.js';
 import { UITexture } from './libs/ui.three.js';

+ 1 - 1
editor/js/Sidebar.Material.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIButton, UIInput, UIPanel, UIRow, UISelect, UIText } from './libs/ui.js';
 import { UIButton, UIInput, UIPanel, UIRow, UISelect, UIText } from './libs/ui.js';
 
 

+ 1 - 1
editor/js/Sidebar.Object.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIPanel, UIRow, UIInput, UIButton, UIColor, UICheckbox, UIInteger, UITextArea, UIText, UINumber } from './libs/ui.js';
 import { UIPanel, UIRow, UIInput, UIButton, UIColor, UICheckbox, UIInteger, UITextArea, UIText, UINumber } from './libs/ui.js';
 import { UIBoolean } from './libs/ui.three.js';
 import { UIBoolean } from './libs/ui.three.js';

+ 1 - 1
editor/js/Sidebar.Project.Renderer.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UINumber, UIPanel, UIRow, UISelect, UIText } from './libs/ui.js';
 import { UINumber, UIPanel, UIRow, UISelect, UIText } from './libs/ui.js';
 import { UIBoolean } from './libs/ui.three.js';
 import { UIBoolean } from './libs/ui.three.js';

+ 1 - 1
editor/js/Sidebar.Scene.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { UIPanel, UIBreak, UIRow, UIColor, UISelect, UIText, UINumber } from './libs/ui.js';
 import { UIPanel, UIBreak, UIRow, UIColor, UISelect, UIText, UINumber } from './libs/ui.js';
 import { UIOutliner, UITexture } from './libs/ui.three.js';
 import { UIOutliner, UITexture } from './libs/ui.three.js';

+ 1 - 1
editor/js/Viewport.VR.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { HTMLMesh } from '../../examples/jsm/interactive/HTMLMesh.js';
 import { HTMLMesh } from '../../examples/jsm/interactive/HTMLMesh.js';
 import { InteractiveGroup } from '../../examples/jsm/interactive/InteractiveGroup.js';
 import { InteractiveGroup } from '../../examples/jsm/interactive/InteractiveGroup.js';

+ 1 - 1
editor/js/Viewport.ViewHelper.js

@@ -1,6 +1,6 @@
 import { UIPanel } from './libs/ui.js';
 import { UIPanel } from './libs/ui.js';
 
 
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 class ViewHelper extends THREE.Object3D {
 class ViewHelper extends THREE.Object3D {
 
 

+ 1 - 1
editor/js/Viewport.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { TransformControls } from '../../examples/jsm/controls/TransformControls.js';
 import { TransformControls } from '../../examples/jsm/controls/TransformControls.js';
 
 

+ 1 - 1
editor/js/commands/AddObjectCommand.js

@@ -1,5 +1,5 @@
 import { Command } from '../Command.js';
 import { Command } from '../Command.js';
-import { ObjectLoader } from '../../../build/three.module.js';
+import { ObjectLoader } from 'three';
 
 
 /**
 /**
  * @param editor Editor
  * @param editor Editor

+ 1 - 1
editor/js/commands/RemoveObjectCommand.js

@@ -1,6 +1,6 @@
 import { Command } from '../Command.js';
 import { Command } from '../Command.js';
 
 
-import { ObjectLoader } from '../../../build/three.module.js';
+import { ObjectLoader } from 'three';
 
 
 /**
 /**
  * @param editor Editor
  * @param editor Editor

+ 1 - 1
editor/js/commands/SetGeometryCommand.js

@@ -1,5 +1,5 @@
 import { Command } from '../Command.js';
 import { Command } from '../Command.js';
-import { ObjectLoader } from '../../../build/three.module.js';
+import { ObjectLoader } from 'three';
 
 
 /**
 /**
  * @param editor Editor
  * @param editor Editor

+ 1 - 1
editor/js/commands/SetMaterialCommand.js

@@ -1,5 +1,5 @@
 import { Command } from '../Command.js';
 import { Command } from '../Command.js';
-import { ObjectLoader } from '../../../build/three.module.js';
+import { ObjectLoader } from 'three';
 
 
 /**
 /**
  * @param editor Editor
  * @param editor Editor

+ 1 - 1
editor/js/commands/SetMaterialMapCommand.js

@@ -1,5 +1,5 @@
 import { Command } from '../Command.js';
 import { Command } from '../Command.js';
-import { ObjectLoader } from '../../../build/three.module.js';
+import { ObjectLoader } from 'three';
 
 
 /**
 /**
  * @param editor Editor
  * @param editor Editor

+ 1 - 1
editor/js/commands/SetPositionCommand.js

@@ -1,5 +1,5 @@
 import { Command } from '../Command.js';
 import { Command } from '../Command.js';
-import { Vector3 } from '../../../build/three.module.js';
+import { Vector3 } from 'three';
 
 
 /**
 /**
  * @param editor Editor
  * @param editor Editor

+ 1 - 1
editor/js/commands/SetRotationCommand.js

@@ -1,5 +1,5 @@
 import { Command } from '../Command.js';
 import { Command } from '../Command.js';
-import { Euler } from '../../../build/three.module.js';
+import { Euler } from 'three';
 
 
 /**
 /**
  * @param editor Editor
  * @param editor Editor

+ 1 - 1
editor/js/commands/SetScaleCommand.js

@@ -1,5 +1,5 @@
 import { Command } from '../Command.js';
 import { Command } from '../Command.js';
-import { Vector3 } from '../../../build/three.module.js';
+import { Vector3 } from 'three';
 
 
 /**
 /**
  * @param editor Editor
  * @param editor Editor

+ 1 - 1
editor/js/libs/ui.three.js

@@ -1,4 +1,4 @@
-import * as THREE from '../../../build/three.module.js';
+import * as THREE from 'three';
 
 
 import { RGBELoader } from '../../../examples/jsm/loaders/RGBELoader.js';
 import { RGBELoader } from '../../../examples/jsm/loaders/RGBELoader.js';
 import { TGALoader } from '../../../examples/jsm/loaders/TGALoader.js';
 import { TGALoader } from '../../../examples/jsm/loaders/TGALoader.js';