Fix #27912: crash after mesh.materials.pop().
This commit is contained in:
@@ -550,7 +550,7 @@ Material *material_pop_id(ID *id, int index)
|
|||||||
Material **mat;
|
Material **mat;
|
||||||
|
|
||||||
if(index + 1 != (*totcol))
|
if(index + 1 != (*totcol))
|
||||||
memmove((*matar), (*matar) + 1, (*totcol) - (index + 1));
|
memmove((*matar), (*matar) + 1, sizeof(void *) * ((*totcol) - (index + 1)));
|
||||||
|
|
||||||
(*totcol)--;
|
(*totcol)--;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user