Minor modifications.

This commit is contained in:
kovacsv 2022-01-04 19:37:53 +01:00
parent b526bea0bb
commit 88f928beae
2 changed files with 1 additions and 2 deletions

View File

@ -254,7 +254,7 @@ OV.ImporterPly = class extends OV.ImporterBase
return;
}
if (foundFace < face.count) {
if (face !== null && foundFace < face.count) {
if (parameters.length >= 4) {
let vertexCount = parseInt (parameters[0], 10);
if (parameters.length < vertexCount + 1) {

View File

@ -1,4 +1,3 @@
OV.SetThreeMeshPolygonOffset = function (mesh, offset)
{
function SetMaterialsPolygonOffset (materials, offset)