Skip to content

Commit d467386

Browse files
committed
Close #18
1 parent 7846ef9 commit d467386

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

chapter-18/chapter-18.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,9 @@ public class Mesh {
6565

6666
public Mesh(float[] positions, float[] normals, float[] tangents, float[] bitangents, float[] textCoords, int[] indices,
6767
int[] boneIndices, float[] weights, Vector3f aabbMin, Vector3f aabbMax) {
68-
try (MemoryStack stack = MemoryStack.stackPush()) {
69-
this.aabbMin = aabbMin;
70-
this.aabbMax = aabbMax;
71-
...
72-
}
68+
this.aabbMin = aabbMin;
69+
this.aabbMax = aabbMax;
70+
...
7371
}
7472
...
7573
public Vector3f getAabbMax() {
@@ -317,6 +315,8 @@ public class Main implements IAppLogic {
317315
modelMatrix.identity();
318316
}
319317
}
318+
319+
scene.setSelectedEntity(selectedEntity);
320320
}
321321
...
322322
}
@@ -385,6 +385,6 @@ public class Main implements IAppLogic {
385385

386386
You will be able to see how cubes are rendered in blue when licked with the mouse:
387387

388-
![Selected cube](screenshot.png)
388+
![Selected cube](./screenshot.png)
389389

390390
[Next chapter](../chapter-19/chapter-19.md)

0 commit comments

Comments
 (0)