From 3a2145e9debb75a91cac41c158c79103354cbfc9 Mon Sep 17 00:00:00 2001 From: Kevin Ruland Date: Thu, 12 Apr 2012 16:50:18 +0000 Subject: [PATCH] Don't use setThickness or setFilled from the loadFromPreset since these have side effects of clearing the preset. --- .../sf/openrocket/rocketcomponent/SymmetricComponent.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/net/sf/openrocket/rocketcomponent/SymmetricComponent.java b/core/src/net/sf/openrocket/rocketcomponent/SymmetricComponent.java index 3342f6f1d..6571aeb99 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/SymmetricComponent.java +++ b/core/src/net/sf/openrocket/rocketcomponent/SymmetricComponent.java @@ -149,11 +149,11 @@ public abstract class SymmetricComponent extends BodyComponent implements Radial @Override protected void loadFromPreset(ComponentPreset preset) { if ( preset.has(ComponentPreset.THICKNESS) ) { - this.setThickness(preset.get(ComponentPreset.THICKNESS)); + this.thickness = preset.get(ComponentPreset.THICKNESS); + this.filled = false; } if ( preset.has(ComponentPreset.FILLED)) { - // FIXME - this doesn't seem to work for nose cones. - this.setFilled(preset.get(ComponentPreset.FILLED)); + this.filled = true; } super.loadFromPreset(preset);