Fixed another generic issue in MultiModel.

This commit is contained in:
RainWarrior committed 2015-10-27 18:52:49 +03:00
1 parent da19eda51e
commit ef2bcb056d
1 file changed
+1 -1
@@ -173,7 +173,7 @@ public class MultiModel implements IModel
@Override
public Pair<IBakedModel, Matrix4f> handlePerspective(TransformType cameraTransformType)
{
if(transforms.isEmpty()) return Pair.of(this, null);
if(transforms.isEmpty()) return Pair.<IBakedModel, Matrix4f>of(this, null);
Pair<Baked, TRSRTransformation> p = transforms.get(cameraTransformType);
return Pair.of((IBakedModel)p.getLeft(), p.getRight().getMatrix());
}