Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYimingWu <xp8110@outlook.com>2022-05-25 15:40:57 +0300
committerYimingWu <xp8110@outlook.com>2022-05-25 15:43:58 +0300
commitef59c8295f0e04630a0cebae3bd4552d50cae2ba (patch)
tree7056ab6c2ef5fce40c3c20c222609912900cd694 /source/blender/gpencil_modifiers
parentc980ed27f09fbb88e4073f8b142830210cf6b28a (diff)
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
Diffstat (limited to 'source/blender/gpencil_modifiers')
-rw-r--r--source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
index 2d3e37e5723..016b70cedb0 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
@@ -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);