Skip .obj objects with no faces
This commit is contained in:
@@ -33,6 +33,10 @@ class ImportObj {
|
|||||||
parts.push(part);
|
parts.push(part);
|
||||||
while (part.has_next) {
|
while (part.has_next) {
|
||||||
part = Krom.io_obj_parse(b.bytes.getData(), splitCode, part.pos, false);
|
part = Krom.io_obj_parse(b.bytes.getData(), splitCode, part.pos, false);
|
||||||
|
// This part does not contain faces (may contain lines only)
|
||||||
|
if (part.inda.length == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
parts.push(part);
|
parts.push(part);
|
||||||
}
|
}
|
||||||
if (Context.raw.splitBy == SplitMaterial) {
|
if (Context.raw.splitBy == SplitMaterial) {
|
||||||
|
|||||||
Reference in New Issue
Block a user