提交 b00d61bb 编写于 作者: M Mr.doob

Simplified object.geometry.morphTargets check.

上级 0fd96d6d
......@@ -121,7 +121,7 @@ THREE.DepthPassPlugin = function () {
if ( objectMaterial ) _renderer.setMaterialFaces( object.material );
useMorphing = typeof(object.geometry.morphTargets) !== 'undefined' && object.geometry.morphTargets.length > 0 && objectMaterial.morphTargets;
useMorphing = object.geometry.morphTargets !== undefined && object.geometry.morphTargets.length > 0 && objectMaterial.morphTargets;
useSkinning = object instanceof THREE.SkinnedMesh && objectMaterial.skinning;
if ( object.customDepthMaterial ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册