Fix T50757: Alembic, assign imported materials to the object data

instead of to the object itself.
This commit is contained in:
Kévin Dietrich 2017-02-24 21:19:52 +01:00
parent 9062c086b4
commit caaf5f0a09
Notes: blender-bot 2023-02-14 07:11:55 +01:00
Referenced by issue #50757, Alembic material import bug
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}
}