From eca160fea62609da08b0c90216010b49df07ef3d Mon Sep 17 00:00:00 2001 From: SiboVG Date: Mon, 13 Feb 2023 12:43:36 +0000 Subject: [PATCH] Extend getNextSymmetricComponent to component assemblies --- .../sf/openrocket/rocketcomponent/SymmetricComponent.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/net/sf/openrocket/rocketcomponent/SymmetricComponent.java b/core/src/net/sf/openrocket/rocketcomponent/SymmetricComponent.java index a4fcf4376..cfd10358a 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/SymmetricComponent.java +++ b/core/src/net/sf/openrocket/rocketcomponent/SymmetricComponent.java @@ -681,10 +681,9 @@ public abstract class SymmetricComponent extends BodyComponent implements BoxBou searchSiblingIndex = 0; } - // One last thing -- I could have a child that is a PodSet that is in line - // with me + // One last thing -- I could have a child that is a ComponentAssembly that is in line with me for (RocketComponent child : getChildren()) { - if (child instanceof PodSet) { + if (child instanceof ComponentAssembly) { for (RocketComponent grandchild : child.getChildren()) { if ((grandchild instanceof SymmetricComponent) && inline(grandchild)) { return (SymmetricComponent) grandchild;