Describe the bug
Calling applyMatrix4
on a BufferGeometry
may throw a TypeError
if the attributes are from an InterleavedBufferAttribute
object, as InterleavedBufferAttribute
doesn’t have applyNormalMatrix
or transformDirection
.
To Reproduce
Steps to reproduce the behavior:
- Go to ‘…’
- Click on ‘….’
- See error
Code
// code goes here
Live example
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem (drag and drop the image).
Platform:
- Device: [Desktop]
- OS: [MacOS]
- Browser: [Chrome]
- Three.js version: [dev, r121]
Similar to
applyMatrix4()
both methods can be copied over. Do you want to make a PR with the fix?