diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2017-02-24 23:19:52 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2017-02-24 23:19:52 +0300 |
commit | caaf5f0a09d3f05648068161034756c756052b25 (patch) | |
tree | 52dc80d2a0ee54757895d800ef57512ae05db767 /source/blender/alembic | |
parent | 9062c086b481ee9f1307f6e2688d822a1166d805 (diff) |
Fix T50757: Alembic, assign imported materials to the object data
instead of to the object itself.
Diffstat (limited to 'source/blender/alembic')
-rw-r--r-- | source/blender/alembic/intern/abc_mesh.cc | 2 |
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 8bc9c335054..5a57e43326a 100644 --- a/source/blender/alembic/intern/abc_mesh.cc +++ b/source/blender/alembic/intern/abc_mesh.cc @@ -691,7 +691,7 @@ static void assign_materials(Main *bmain, Object *ob, const std::map<std::string assigned_name = mat_iter->second; } - assign_material(ob, assigned_name, it->second, BKE_MAT_ASSIGN_OBJECT); + assign_material(ob, assigned_name, it->second, BKE_MAT_ASSIGN_OBDATA); } } } |