Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_add.c
| Show First 20 Lines • Show All 1,884 Lines • ▼ Show 20 Lines | if (ob->flag & OB_DONE || !IS_TAGGED(ob->data)) { | ||||
| /* obdata already modified */ | /* obdata already modified */ | ||||
| if (!IS_TAGGED(ob->data)) { | if (!IS_TAGGED(ob->data)) { | ||||
| /* When 2 objects with linked data are selected, converting both | /* When 2 objects with linked data are selected, converting both | ||||
| * would keep modifiers on all but the converted object [#26003] */ | * would keep modifiers on all but the converted object [#26003] */ | ||||
| if (ob->type == OB_MESH) { | if (ob->type == OB_MESH) { | ||||
| BKE_object_free_modifiers(ob, 0); /* after derivedmesh calls! */ | BKE_object_free_modifiers(ob, 0); /* after derivedmesh calls! */ | ||||
| } | } | ||||
| if (ob->type == OB_GPENCIL) { | |||||
| BKE_object_free_modifiers(ob, 0); /* after derivedmesh calls! */ | |||||
| BKE_object_free_shaderfx(ob, 0); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| else if (ob->type == OB_MESH && target == OB_CURVE) { | else if (ob->type == OB_MESH && target == OB_CURVE) { | ||||
| ob->flag |= OB_DONE; | ob->flag |= OB_DONE; | ||||
| if (keep_original) { | if (keep_original) { | ||||
| basen = duplibase_for_convert(bmain, scene, view_layer, base, NULL); | basen = duplibase_for_convert(bmain, scene, view_layer, base, NULL); | ||||
| newob = basen->object; | newob = basen->object; | ||||
| ▲ Show 20 Lines • Show All 808 Lines • Show Last 20 Lines | |||||