From e145c9f11f15048859d2485ad4849932d66eea5b Mon Sep 17 00:00:00 2001 From: SimonDanisch Date: Thu, 7 Dec 2017 22:36:40 +0100 Subject: [PATCH] use correct length --- src/io/obj.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/obj.jl b/src/io/obj.jl index 0ef38c5..a712f22 100644 --- a/src/io/obj.jl +++ b/src/io/obj.jl @@ -42,7 +42,7 @@ function load{MT <: AbstractMesh}(io::Stream{format"OBJ"}, MeshType::Type{MT} = push!(f, triangulated_faces(Tf, lines)...) continue end - for i = 1:length(fs) + for i = 1:length(first(fs)) push!(f_uv_n_faces[i], triangulated_faces(Tf, getindex.(fs, i))...) end else