-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix blocks overflowing over the top of octree bounds #1768
Conversation
This was due to an incorrect maxDimension calculation
Assertions would be great, but why in PackedOctree? Why not throw some IllegalArgumentExceptions in Octree to fix these bugs fast? Or at least warn and tell the user to report a bug? |
👍 I'd forgotten that the octree wrapper existed |
Bounds on the assertions are off-by-one. Will fix tonight |
Thoughts on splitting Also this method is pretty horrible, internally modifies |
aa68767
to
241fabc
Compare
@NotStirred Splitting |
Due to an incorrect maxDimension calculation
This happened because we were trying to set a cube of height 16 less than 16 blocks from the edge of the octree. (which was then masked to within bounds and so wrapped)
Thoughts on adding some assertions in packedoctree that the arguments are even valid?