use umd format for three
This commit is contained in:
parent
38af788a1b
commit
50fc77c652
2 changed files with 20 additions and 0 deletions
19
debian/patches/0500-use-umd.patch
vendored
Normal file
19
debian/patches/0500-use-umd.patch
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- a/app/assets/javascripts/blob/3d_viewer/index.js
|
||||
+++ b/app/assets/javascripts/blob/3d_viewer/index.js
|
||||
@@ -1,4 +1,4 @@
|
||||
-import * as THREE from 'three/build/three.module';
|
||||
+import * as THREE from 'three/build/three';
|
||||
import STLLoaderClass from 'three-stl-loader';
|
||||
import OrbitControlsClass from 'three-orbit-controls';
|
||||
import MeshObject from './mesh_object';
|
||||
--- a/app/assets/javascripts/blob/3d_viewer/mesh_object.js
|
||||
+++ b/app/assets/javascripts/blob/3d_viewer/mesh_object.js
|
||||
@@ -2,7 +2,7 @@
|
||||
Matrix4,
|
||||
MeshLambertMaterial,
|
||||
Mesh,
|
||||
-} from 'three/build/three.module';
|
||||
+} from 'three/build/three';
|
||||
|
||||
const defaultColor = 0xE24329;
|
||||
const materials = {
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
|
@ -17,3 +17,4 @@ pid-log-paths.patch
|
|||
0430-remove-devdeps.patch
|
||||
add-system-lib-path-for-webpack.patch
|
||||
fix-mail-room-path.patch
|
||||
0500-use-umd.patch
|
||||
|
|
Loading…
Reference in a new issue