fixed instance count saving for parallel stages
This commit is contained in:
parent
ce215a4bb0
commit
4a075fcc2e
@ -20,7 +20,6 @@ import net.sf.openrocket.rocketcomponent.FlightConfigurationId;
|
|||||||
import net.sf.openrocket.rocketcomponent.Instanceable;
|
import net.sf.openrocket.rocketcomponent.Instanceable;
|
||||||
import net.sf.openrocket.rocketcomponent.LineInstanceable;
|
import net.sf.openrocket.rocketcomponent.LineInstanceable;
|
||||||
import net.sf.openrocket.rocketcomponent.MotorMount;
|
import net.sf.openrocket.rocketcomponent.MotorMount;
|
||||||
import net.sf.openrocket.rocketcomponent.ParallelStage;
|
|
||||||
import net.sf.openrocket.rocketcomponent.RingInstanceable;
|
import net.sf.openrocket.rocketcomponent.RingInstanceable;
|
||||||
import net.sf.openrocket.rocketcomponent.Rocket;
|
import net.sf.openrocket.rocketcomponent.Rocket;
|
||||||
import net.sf.openrocket.rocketcomponent.RocketComponent;
|
import net.sf.openrocket.rocketcomponent.RocketComponent;
|
||||||
@ -91,11 +90,12 @@ public class RocketComponentSaver {
|
|||||||
}
|
}
|
||||||
if( c instanceof LineInstanceable ){
|
if( c instanceof LineInstanceable ){
|
||||||
LineInstanceable line = (LineInstanceable)c;
|
LineInstanceable line = (LineInstanceable)c;
|
||||||
emitString( elements, "instancecount", Integer.toString( c.getInstanceCount()) );
|
emitString( elements, "instancecount", Integer.toString( instanceCount ) );
|
||||||
emitDouble( elements, "linseparation", line.getInstanceSeparation());
|
emitDouble( elements, "linseparation", line.getInstanceSeparation());
|
||||||
}
|
}
|
||||||
if( c instanceof RingInstanceable){
|
if( c instanceof RingInstanceable){
|
||||||
RingInstanceable ring = (RingInstanceable)c;
|
RingInstanceable ring = (RingInstanceable)c;
|
||||||
|
emitString( elements, "instancecount", Integer.toString( instanceCount ));
|
||||||
if( ring.getAutoRadialOffset() ){
|
if( ring.getAutoRadialOffset() ){
|
||||||
emitString(elements, "radialoffset", "auto");
|
emitString(elements, "radialoffset", "auto");
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user