瀏覽代碼

Add comment

Temdog007 6 年之前
父節點
當前提交
226b329fbd
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/loaders/ObjectLoader.js

+ 2 - 0
src/loaders/ObjectLoader.js

@@ -344,6 +344,8 @@ Object.assign( ObjectLoader.prototype, {
 					case 'TubeGeometry':
 					case 'TubeBufferGeometry':
 
+						// This only works for built-in curves (e.g. CatmullRomCurve3).
+						// User defined curves or instances of CurvePath will not be deserialized.
 						geometry = new Geometries[ data.type ](
 							new Curves[ data.path.type ]().fromJSON( data.path ),
 							data.tubularSegments,