Fix T48822: Crash when I try to use "Join" (Ctrl Key + J) with two meshes.

Own stupid typo in recent refactor work...
This commit is contained in:
Bastien Montagne 2016-07-10 20:12:58 +02:00
parent 8df92988cf
commit 47c47c7e78
Notes: blender-bot 2023-02-14 07:45:41 +01:00
Referenced by issue #48826, Crash while rendering in viewport (Cycles)
Referenced by issue #48829, Memory leak on Blender Exit (possibly related to mixing BI and Cycles nodes and material data )
Referenced by issue #48822, Crash when I try to use "Join" (Ctrl Key + J) with two meshes
Referenced by issue #48824, Cycles: Crash with glass+volume(?)
1 changed files with 1 additions and 1 deletions

View File

@ -672,7 +672,7 @@ void test_all_objects_materials(Main *bmain, ID *id)
}
BKE_main_lock(bmain);
for (bmain = bmain->object.first; ob; ob = ob->id.next) {
for (ob = bmain->object.first; ob; ob = ob->id.next) {
if (ob->data == id) {
BKE_material_resize_object(ob, *totcol, false);
}