Fix #114552: Copy material to selected crash on object lacking slot #119161

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:114552 into blender-v4.1-release 2024-03-07 15:43:57 +01:00

1 Commits

Author SHA1 Message Date
Philipp Oeser a9bbfe8f84 Fix #114552: Copy material to selected crash on object lacking slot
Caused by 9c1da81a4c.

This happened in the case where objects shared the same data and slots
are assigned to object nd receiving object did not have a material slot
yet.

Then, `ob->matbits` may be NULL, now just check for this, too.
2024-03-07 13:11:36 +01:00