Skip to content
Snippets Groups Projects
Commit 1bc4cf4c authored by Thomas Oster's avatar Thomas Oster
Browse files

Merge pull request #46 from madleech/fix-float-cast-error

Pass correct type to laser property (fixes #45)
parents 2e2da708 9c5bc7db
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,12 @@ public class RasterPart extends RasterizableJobPart
this.resolution = resolution;
this.blackPixelProperty = laserProperty;
this.whitePixelProperty = blackPixelProperty.clone();
whitePixelProperty.setProperty("power", 0.0f);
if (whitePixelProperty instanceof FloatPowerSpeedFocusFrequencyProperty || whitePixelProperty instanceof FloatPowerSpeedFocusProperty) {
whitePixelProperty.setProperty("power", 0.0f);
}
else {
whitePixelProperty.setProperty("power", 0);
}
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment