Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
| Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (use_ob->type == OB_MESH) { | if (use_ob->type == OB_MESH) { | ||||
| use_mesh = use_ob->data; | use_mesh = use_ob->data; | ||||
| } | } | ||||
| else { | else { | ||||
| /* If DEG_ITER_OBJECT_FLAG_DUPLI is set, the curve objects are going to have a mesh | /* If DEG_ITER_OBJECT_FLAG_DUPLI is set, some curve objects may also have an evaluated mesh | ||||
| * equivalent already in the object list, so ignore converting the original curve in this | * object in the list. To avoid adding duplicate geometry, ignore curve objects in those | ||||
| * case. */ | * cases. */ | ||||
| if (allow_duplicates) { | if (allow_duplicates && BKE_object_get_evaluated_mesh(ob) != NULL) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| use_mesh = BKE_mesh_new_from_object(depsgraph, use_ob, true, true); | use_mesh = BKE_mesh_new_from_object(depsgraph, use_ob, true, true); | ||||
| } | } | ||||
| /* In case we still can not get any mesh geometry data from the object */ | /* In case we still can not get any mesh geometry data from the object */ | ||||
| if (!use_mesh) { | if (!use_mesh) { | ||||
| continue; | continue; | ||||
| ▲ Show 20 Lines • Show All 992 Lines • Show Last 20 Lines | |||||