Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2019-06-21 12:32:57 +0300
committerSybren A. Stüvel <sybren@blender.org>2019-06-21 12:32:57 +0300
commit964e319a39abfe3808fded71dcacd296401ec04d (patch)
treed3dc0fd76b1b7e083b7bf338dc8d2da565a4a94f /source/blender/alembic
parent820e431167eea634692e0b618ace5fba6bef6f9f (diff)
Fix: Alembic import segfault when importing mesh with null UVs
This fixes an issue introduced in 4337bc2e6303dbd5f295878f3e7490995a62713a.
Diffstat (limited to 'source/blender/alembic')
-rw-r--r--source/blender/alembic/intern/abc_mesh.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/alembic/intern/abc_mesh.cc b/source/blender/alembic/intern/abc_mesh.cc
index 9a00140b0fc..de227be0044 100644
--- a/source/blender/alembic/intern/abc_mesh.cc
+++ b/source/blender/alembic/intern/abc_mesh.cc
@@ -830,7 +830,7 @@ static void read_mpolys(CDStreamConfig &config, const AbcMeshData &mesh_data)
const Int32ArraySamplePtr &face_indices = mesh_data.face_indices;
const Int32ArraySamplePtr &face_counts = mesh_data.face_counts;
const V2fArraySamplePtr &uvs = mesh_data.uvs;
- const size_t uvs_size = uvs->size();
+ const size_t uvs_size = uvs == nullptr ? 0 : uvs->size();
const UInt32ArraySamplePtr &uvs_indices = mesh_data.uvs_indices;
const N3fArraySamplePtr &normals = mesh_data.face_normals;