Merge pull request #745 from teyrana/fix/740-button-save-load
[fixes #740] Railbuttons now correctly load instance-separation
This commit is contained in:
commit
e90318a7ac
@ -157,20 +157,12 @@ public class RailButton extends ExternalComponent implements AnglePositionable,
|
|||||||
public void setOuterDiameter( final double newOD ){
|
public void setOuterDiameter( final double newOD ){
|
||||||
this.outerDiameter_m = newOD;
|
this.outerDiameter_m = newOD;
|
||||||
|
|
||||||
// devel
|
|
||||||
this.innerDiameter_m = newOD*0.8;
|
|
||||||
this.setInstanceSeparation( newOD*6);
|
|
||||||
|
|
||||||
fireComponentChangeEvent(ComponentChangeEvent.BOTH_CHANGE);
|
fireComponentChangeEvent(ComponentChangeEvent.BOTH_CHANGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTotalHeight( final double newHeight ) {
|
public void setTotalHeight( final double newHeight ) {
|
||||||
this.totalHeight_m = newHeight;
|
this.totalHeight_m = newHeight;
|
||||||
|
|
||||||
// devel
|
|
||||||
this.flangeHeight_m = newHeight*0.25;
|
|
||||||
this.setStandoff( newHeight*0.25);
|
|
||||||
|
|
||||||
fireComponentChangeEvent(ComponentChangeEvent.BOTH_CHANGE);
|
fireComponentChangeEvent(ComponentChangeEvent.BOTH_CHANGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user