Fix stackoverflow on prev/next comp checking
This commit is contained in:
parent
9ef59ec6af
commit
7666cbb680
@ -707,7 +707,9 @@ public abstract class SymmetricComponent extends BodyComponent implements BoxBou
|
||||
// It could be that there is a child component assembly that is flush with the end of the parent or larger
|
||||
// Recursively check assembly's children
|
||||
previousComponent = getPreviousSymmetricComponentFromComponentAssembly(lastSymmetricChild, previousComponent, flushDeviation);
|
||||
maxRadius = previousComponent != null ? previousComponent.getAftRadius() : maxRadius;
|
||||
if (previousComponent != null && !previousComponent.isAftRadiusAutomatic()) {
|
||||
maxRadius = previousComponent.getAftRadius();
|
||||
}
|
||||
}
|
||||
|
||||
return previousComponent;
|
||||
@ -826,7 +828,9 @@ public abstract class SymmetricComponent extends BodyComponent implements BoxBou
|
||||
// It could be that there is a child component assembly that is flush with the front of the parent or larger
|
||||
// Recursively check assembly's children
|
||||
nextComponent = getNextSymmetricComponentFromComponentAssembly(firstSymmetricChild, nextComponent, flushDeviation);
|
||||
maxRadius = nextComponent != null ? nextComponent.getForeRadius() : maxRadius;
|
||||
if (nextComponent != null && !nextComponent.isForeRadiusAutomatic()) {
|
||||
maxRadius = nextComponent.getForeRadius();
|
||||
}
|
||||
}
|
||||
|
||||
return nextComponent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user