Skip to content

Commit

Permalink
Update project export and import
Browse files Browse the repository at this point in the history
  • Loading branch information
hendzeld committed Mar 29, 2023
1 parent 1659fc6 commit 7e7cece
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ThreeEditor/util/Beam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface BeamJSON {
y: number;
};

sad?: {
sad: {
type: SadType;
x: number;
y: number;
Expand Down Expand Up @@ -296,6 +296,7 @@ export class Beam extends SimulationObject3D {
energyLowCutoff: this.energyLowCutoff,
energyHighCutoff: this.energyHighCutoff,
sigma: this.sigma,
sad: this.sad,
divergence: this.divergence,
particle: this.particleData,
colorHex: this.material.color.getHex(),
Expand All @@ -321,6 +322,7 @@ export class Beam extends SimulationObject3D {
this.numberOfParticles = loadedData.numberOfParticles;
this.beamSourceFile = loadedData.beamSourceFile;
this.sigma = loadedData.sigma;
this.sad = loadedData.sad;
this.beamSourceType = loadedData.beamSourceType;
return this;
}
Expand Down

0 comments on commit 7e7cece

Please sign in to comment.