diff options
author | YimingWu <xp8110@outlook.com> | 2022-02-19 17:35:22 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2022-02-19 17:35:22 +0300 |
commit | 991781c8eabefbcadc534bce3af32c4a7c61b59f (patch) | |
tree | 6654b91f45b94a65f3cf378be51d0ae0df280c83 /source/blender/gpencil_modifiers | |
parent | 385d9488e606023bc0edf50a45992dc85405e95b (diff) |
LineArt: GPU subdiv fix.
Use evaluated mesh instead of ob->data.
Reviewed by: Antonio Vazquez (antoniov)
Differential Revision: https://developer.blender.org/D14040
Diffstat (limited to 'source/blender/gpencil_modifiers')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c index e24452b1072..a5af66cbbc5 100644 --- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c +++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c @@ -2205,7 +2205,7 @@ static void lineart_main_load_geometries( } if (use_ob->type == OB_MESH) { - use_mesh = use_ob->data; + use_mesh = BKE_object_get_evaluated_mesh(use_ob); } else { /* If DEG_ITER_OBJECT_FLAG_DUPLI is set, some curve objects may also have an evaluated mesh @@ -4453,7 +4453,7 @@ static void lineart_gpencil_generate(LineartCache *cache, if ((match_output || (gpdg = BKE_object_defgroup_name_index(gpencil_object, vgname)) >= 0)) { if (eval_ob && eval_ob->type == OB_MESH) { int dindex = 0; - Mesh *me = (Mesh *)eval_ob->data; + Mesh *me = BKE_object_get_evaluated_mesh(eval_ob); if (me->dvert) { LISTBASE_FOREACH (bDeformGroup *, db, &me->vertex_group_names) { if ((!source_vgname) || strstr(db->name, source_vgname) == db->name) { |