Skip to content

Commit

Permalink
#30 - Fixed a condition bug causing instances not to prefer static
Browse files Browse the repository at this point in the history
  • Loading branch information
sriharshachilakapati committed Jun 10, 2015
1 parent daa3447 commit 3130932
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public void addModel(Model model, Transform transform)

public void addMesh(Mesh mesh, Transform transform)
{
if (mesh.getNumberOfVertices() <= 900 || !mesh.prefersStatic())
if (mesh.getNumberOfVertices() <= 900 && !mesh.prefersStatic())
{
meshes.add(mesh);
transforms.add(transform);
Expand Down

0 comments on commit 3130932

Please sign in to comment.