Ensure to set old material to doc material
This commit is contained in:
parent
2a53ee9420
commit
117d7d79df
@ -227,6 +227,7 @@ public class MaterialEditPanel extends JPanel {
|
||||
// If the application material was already in use, add the old application material as a document material
|
||||
Map<OpenRocketDocument, List<RocketComponent>> components = getComponentsThatUseMaterial(m);
|
||||
if (!components.isEmpty()) {
|
||||
m.setDocumentMaterial(true);
|
||||
for (OpenRocketDocument doc: components.keySet()) {
|
||||
doc.getDocumentPreferences().addMaterial(m);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user