浏览代码

added dependency to VTKLoader module

Lewy Blue 6 年之前
父节点
当前提交
bd914417e2
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      examples/jsm/loaders/VTKLoader.js
  2. 1 1
      utils/modularize.js

+ 1 - 0
examples/jsm/loaders/VTKLoader.js

@@ -18,6 +18,7 @@ import {
 	Float32BufferAttribute,
 	LoaderUtils
 } from "../../../build/three.module.js";
+import { Zlib } from "../libs/inflate.min.js";
 
 var VTKLoader = function ( manager ) {
 

+ 1 - 1
utils/modularize.js

@@ -93,7 +93,7 @@ var files = [
 	{ path: 'loaders/TDSLoader.js', dependencies: [], ignoreList: [] },
 	{ path: 'loaders/TGALoader.js', dependencies: [], ignoreList: [] },
 	{ path: 'loaders/VRMLLoader.js', dependencies: [], ignoreList: [] },
-	{ path: 'loaders/VTKLoader.js', dependencies: [], ignoreList: [] },
+	{ path: 'loaders/VTKLoader.js', dependencies: [ { name: 'Zlib', path: 'libs/inflate.min.js' } ], ignoreList: [] },
 
 	{ path: 'math/ColorConverter.js', dependencies: [], ignoreList: [] },
 	{ path: 'math/ConvexHull.js', dependencies: [], ignoreList: [] },