Closed jailln closed 4 years ago
A better solution, that seems to work on at least a few example: removing the circular dependency. I removed the OBB
import in BuilderEllipsoidTile
, as the only method on it serves no purpose imho.
I submitted the fix in #1382
Yep that's better! Thanks for your quick response and fix :+1:
The fix is now in master
.
Your Environment
Context
While rebasing one of my branch I came across a bug that does not seem directly related to the code I introduced/modified.
On this branch, all the examples of iTowns produce the following error (while I have not modified
Renderer/OBB.js
norCore/Prefab/Globe/BuilderEllipsoidTile.js
):Steps to Reproduce (for bugs)
Expected Behavior
Examples not related to 3DTiles should work since I only modified 3DTiles related code.
Actual Behavior
All examples are broken.
Possible Cause
By looking into the code I think this error is caused by a combination of:
builder
which uses BuilderEllipsoidTile's constructor.However, I don't know why it works on the master branch and why it does not on my branch...
Possible Fix/Solution
Initializing
builder
toundefined
or moving its declaration into thesetFromExtent()
method (where it is used) solves this issue. However, since I am not familiar with this part of the code, I will let you decide what is the best solution to handle this issue. In addition, is there any reason for this circular dependency and for using global variables inRenderer/OBB.js
?