Skip to content

Commit

Permalink
fix: Fix deprecation introduced by threejs r113 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
samalexander authored Feb 25, 2020
1 parent a8ea6ea commit 55b5fdf
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
29 changes: 19 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@
"@types/node": "^12.12.3",
"jest": "^24.9.0",
"standard-version": "^7.0.0",
"three": "^0.110.0",
"three": "^0.113.2",
"ts-jest": "^24.1.0",
"tslint": "^5.20.0",
"tslint-config-standard": "^8.0.1",
"typescript": "^3.6.4"
},
"peerDependencies": {
"three": ">= 0.104.0 < 1"
"three": ">= 0.113.0 < 1"
},
"files": [
"lib/**/*"
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class CSG {
}
}
const inv = new Matrix4().getInverse(toMatrix);
geom.applyMatrix(inv);
geom.applyMatrix4(inv);
geom.verticesNeedUpdate = geom.elementsNeedUpdate = geom.normalsNeedUpdate = true;
geom.computeBoundingSphere();
geom.computeBoundingBox();
Expand Down

0 comments on commit 55b5fdf

Please sign in to comment.