Closed AsDeadAsADodo closed 1 year ago
The only difference between good and error is one of the brushes ' position is random. There's no other errors.
When this shows up , console print error Normally it's
node.count
is 0
, however in else
snippet , node.left
and node.right
are both undefined
Please provide a repro case with jsfiddle or something comparable so this can be inspected.
@gkjohnson Sorry for the delay , I tried to build a issue version , but we did lots of commits that day I cant reproduce this error.
I fixed this by reducing the random range , tested like 20+ times .
I suppose this may help too ? No other errors and warnings .
I fixed this by reducing the random range
Unfortunately I'm not sure what this means. Without a minimal reproduce-able example on something like jsfiddle this isn't possible to debug. The line you're pointing to is in the three-mesh-bvh project which is fairly well used and well tested. Without a minimal example it's hard to say whether the problem is in your codebase or not.
This is the error stack. Same two Brush es , sometimes it's ok , sometimes got this error.