Don't use setThickness or setFilled from the loadFromPreset since these have side effects of clearing the preset.
This commit is contained in:
parent
b850d6615f
commit
3a2145e9de
@ -149,11 +149,11 @@ public abstract class SymmetricComponent extends BodyComponent implements Radial
|
|||||||
@Override
|
@Override
|
||||||
protected void loadFromPreset(ComponentPreset preset) {
|
protected void loadFromPreset(ComponentPreset preset) {
|
||||||
if ( preset.has(ComponentPreset.THICKNESS) ) {
|
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)) {
|
if ( preset.has(ComponentPreset.FILLED)) {
|
||||||
// FIXME - this doesn't seem to work for nose cones.
|
this.filled = true;
|
||||||
this.setFilled(preset.get(ComponentPreset.FILLED));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
super.loadFromPreset(preset);
|
super.loadFromPreset(preset);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user