瀏覽代碼

Update comment for attribute cloning

Takahiro 8 年之前
父節點
當前提交
6fc2b00d53
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      examples/js/loaders/GLTF2Loader.js

+ 2 - 1
examples/js/loaders/GLTF2Loader.js

@@ -2141,7 +2141,8 @@ THREE.GLTF2Loader = ( function () {
 									//     + weight1 * morphTarget1
 									//     ...
 									// then adding position to morphTarget.
-									// morphTarget should depend on mesh, so cloning attribute.
+									// So morphTarget value will depend on mesh's position, then cloning attribute
+									// for the case if attribute is shared among two or more meshes.
 
 									var attribute = dependencies.accessors[ target.POSITION ].clone();
 									var position = geometry.attributes.position;