Skip to content

Commit f74d6f8

Browse files
committed
affine must be set in thee UI thread
1 parent 16bc8b3 commit f74d6f8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/creature/MobileBaseCadManager.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,11 @@ public CSG getVitaminDisplay(VitaminLocation vitamin,Affine manipulator, Transfo
173173
Affine offsetDisplay = new Affine();
174174
try {
175175
starting = Vitamins.get(vitamin.getType(), vitamin.getSize());
176-
if(offset!=null)
177-
TransformFactory.nrToAffine(offset,offsetDisplay);
176+
if(offset!=null){
177+
BowlerKernel.runLater(()->{
178+
TransformFactory.nrToAffine(offset,offsetDisplay);
179+
});
180+
}
178181
} catch (Exception e) {
179182
// TODO Auto-generated catch block
180183
e.printStackTrace();

0 commit comments

Comments
 (0)