Merge pull request #2552 from SiboVG/issue-2532

[#2532] Fire outdated sim on stage rename
This commit is contained in:
Sibo Van Gool 2024-09-05 23:40:44 +02:00 committed by GitHub
commit 3e60597ade
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1139,7 +1139,11 @@ public abstract class RocketComponent implements ChangeSource, Cloneable, Iterab
else
this.name = name;
fireComponentChangeEvent(ComponentChangeEvent.NONFUNCTIONAL_CHANGE);
if (this instanceof AxialStage) {
fireComponentChangeEvent(ComponentChangeEvent.TREE_CHANGE);
} else {
fireComponentChangeEvent(ComponentChangeEvent.NONFUNCTIONAL_CHANGE);
}
}