use umd format for three

This commit is contained in:
Pirate Praveen 2017-12-26 21:10:41 +05:30
parent 38af788a1b
commit 50fc77c652
2 changed files with 20 additions and 0 deletions

19
debian/patches/0500-use-umd.patch vendored Normal file
View 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 = {

View file

@ -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