Closed veillette closed 1 year ago
The problems lies with reconfigureNucleus()
nucleonShellPosition.particle = particleArray[ nucleonIndex ];
...
nucleonShellPosition.particle.setPositionAndDestination( viewDestination );
but sometimes nucleonShellPosition.particle
is undefined.
A bandaid solution would be :
nucleonShellPosition.particle = particleArray[ nucleonIndex ];
if ( nucleonShellPosition.particle ) {
nucleonShellPosition.particle.setPositionAndDestination( viewDestination );
}
@Luisav1 and @marlitas may have more insights about the failure.
Hmmm... this should not be happening and we will definitely look into it...By the time it arrives at setPositionAndDestination a particle would have been set previously... this may be an order dependency problem that we have run into before.
This error is no longer occurring after some refactoring. Closing.