Skip to content

Commit 750534b

Browse files
committed
remove hidden gfiles
1 parent bb3c157 commit 750534b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public class ThumbnailImage {
3333
// Create a group to hold all the meshes
3434
private Group root = new Group();
3535
private Scene scene;
36+
private int sizeOfImage = 500;
37+
;
3638

3739
public Bounds getSellectedBounds() {
3840
Vector3d min = null;
@@ -159,9 +161,8 @@ public WritableImage get(CSGDatabaseInstance instance, List<CSG> c) {
159161

160162
Affine af = TransformFactory.nrToAffine(camoffset.times(rot.times(camDist)));
161163
camera.getTransforms().add(af);
162-
int i = 100;
163164
if (scene == null) {
164-
scene = new Scene(root, i, i, true, SceneAntialiasing.BALANCED);
165+
scene = new Scene(root, sizeOfImage, sizeOfImage, true, SceneAntialiasing.BALANCED);
165166
scene.setFill(Color.TRANSPARENT);
166167
scene.setCamera(camera);
167168
}
@@ -176,7 +177,7 @@ public WritableImage get(CSGDatabaseInstance instance, List<CSG> c) {
176177
camera.setFarClip(9000.0); // Set the far clip plane
177178

178179
// Create the WritableImage first
179-
WritableImage snapshot = new WritableImage(i, i);
180+
WritableImage snapshot = new WritableImage(sizeOfImage, sizeOfImage);
180181

181182
root.snapshot(params, snapshot);
182183

0 commit comments

Comments
 (0)