forked from blender/blender
Fix review comments #51
@ -185,7 +185,7 @@ void CurvesData::write_material()
|
|||||||
Object *object = (Object *)id;
|
Object *object = (Object *)id;
|
||||||
Material *mat = nullptr;
|
Material *mat = nullptr;
|
||||||
if (BKE_object_material_count_eval(object) > 0) {
|
if (BKE_object_material_count_eval(object) > 0) {
|
||||||
mat = BKE_object_material_get_eval(object, object->actcol);
|
mat = BKE_object_material_get_eval(object, 0);
|
||||||
DagerD marked this conversation as resolved
Outdated
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!mat) {
|
if (!mat) {
|
||||||
|
Loading…
Reference in New Issue
Block a user
Add comment here about using first material and TODO about support multimaterial