修正z轴为空的时候 判断错误的问题.
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/createBoard.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/createBoard.js
									
									
									
									
										vendored
									
									
								
							@@ -83,7 +83,7 @@ function createBoard(boardData) {
 | 
			
		||||
    if (boardPts && boardPts.length !== 0)
 | 
			
		||||
        for (let i = 0; i < boardPts.length; i++) {
 | 
			
		||||
            let pt = getVec(boardPts[i]);
 | 
			
		||||
            if (pt.z !== undefined)
 | 
			
		||||
            if (boardPts[i].z !== undefined)
 | 
			
		||||
                pt.applyMatrix4(matInv);
 | 
			
		||||
            pts.push(new THREE.Vector2(pt.x, pt.y));
 | 
			
		||||
            buls.push(boardBuls[i]);
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								dist/createBoard.js.map
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/createBoard.js.map
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -105,7 +105,7 @@ export function createBoard(boardData: object)
 | 
			
		||||
        for (let i = 0; i < boardPts.length; i++)
 | 
			
		||||
        {
 | 
			
		||||
            let pt = getVec(boardPts[i]);
 | 
			
		||||
            if (pt.z !== undefined)
 | 
			
		||||
            if (boardPts[i].z !== undefined)
 | 
			
		||||
                pt.applyMatrix4(matInv);
 | 
			
		||||
            pts.push(new THREE.Vector2(pt.x, pt.y));
 | 
			
		||||
            buls.push(boardBuls[i]);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user