Fix crash entering edit mode on linked duplicate meshes with
dupliverts. The flag mode & OB_MODE_EDIT only indicates that this object is being edited by the user, not if the mesh is in editmode or not, it should check for the existence of me->edit_mesh. Also corrected two other places for this.
This commit is contained in:
@@ -485,7 +485,7 @@ static void rna_Object_active_material_index_set(PointerRNA *ptr, int value)
|
||||
Object *ob= (Object*)ptr->id.data;
|
||||
ob->actcol= value+1;
|
||||
|
||||
if((ob->mode & OB_MODE_EDIT) && ob->type==OB_MESH) {
|
||||
if(ob->type==OB_MESH) {
|
||||
Mesh *me= ob->data;
|
||||
|
||||
if(me->edit_mesh)
|
||||
|
||||
Reference in New Issue
Block a user