Details
Details
- Reviewers
Hans Goudey (HooglyBoogly) - Maniphest Tasks
- T92256: Rotate Instances node is not scaling properly
Diff Detail
Diff Detail
- Repository
- rB Blender
- Branch
- rotate-instances-fix (branched from master)
- Build Status
Buildable 17844 Build 17844: arc lint + arc unit
Event Timeline
Comment Actions
Regardless of the code here, a problem like this is not obvious and should have a report with a proper example file. That can make it much easier to figure out code in the future.
Comment Actions
I'm unsure if this is a good fix. It feels a bit brittle and it does not seem guaranteed that this never change the scaling in some way. I tried a different fix that I'll upload in a bit.
| source/blender/nodes/geometry/nodes/node_geo_rotate_instances.cc | ||
|---|---|---|
| 64 | Inverting a 4x4 matrix is an expensive operation that should not be done if not really necessary. Often (like in this case) you have additional information about the matrix that makes inverting it much more efficient: Inverting a scale matrix just means taking the inverse of the elements on the diagonal. | |
