Fix T98355: Line art crash when switch to mesh edit mode.
This fix will ensure not to load any meshes that's being edited, thus avoiding crashes. Ref D15022
This commit is contained in:
parent
c980ed27f0
commit
ef59c8295f
Notes:
blender-bot
2023-02-14 11:07:28 +01:00
Referenced by issue #98355, Line Art: Crash when switching to editmode in current master
|
@ -2362,6 +2362,11 @@ static void lineart_object_load_single_instance(LineartRenderBuffer *rb,
|
|||
}
|
||||
if (ob->type == OB_MESH) {
|
||||
use_mesh = BKE_object_get_evaluated_mesh(ob);
|
||||
if (use_mesh->edit_mesh) {
|
||||
/* If the object is being edited, then the mesh is not evaluated fully into the final
|
||||
* result, do not load them. */
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
use_mesh = BKE_mesh_new_from_object(depsgraph, ob, true, true);
|
||||
|
|
Loading…
Reference in New Issue