Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_add.c
| Context not available. | |||||
| * still work out ok */ | * still work out ok */ | ||||
| BKE_object_apply_mat4(ob_dst, dob->mat, false, true); | BKE_object_apply_mat4(ob_dst, dob->mat, false, true); | ||||
| /* to set ob_dst->orig and in case theres any other discrepicies */ | /* to set ob_dst->orig and in case there's any other discrepancies */ | ||||
| DEG_id_tag_update(&ob_dst->id, OB_RECALC_OB); | DEG_id_tag_update(&ob_dst->id, OB_RECALC_OB); | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||
| { | { | ||||
| ob->flag &= ~OB_DONE; | ob->flag &= ~OB_DONE; | ||||
| /* flag data thats not been edited (only needed for !keep_original) */ | /* flag data that's not been edited (only needed for !keep_original) */ | ||||
| if (ob->data) { | if (ob->data) { | ||||
| ((ID *)ob->data)->tag |= LIB_TAG_DOIT; | ((ID *)ob->data)->tag |= LIB_TAG_DOIT; | ||||
| } | } | ||||
| Context not available. | |||||
| Base *base = link->ptr.data; | Base *base = link->ptr.data; | ||||
| Object *ob = base->object; | Object *ob = base->object; | ||||
| /* The way object type conversion works currently (enforcing conversion of *all* objetcs using converted | /* The way object type conversion works currently (enforcing conversion of *all* objects using converted | ||||
| * obdata, even some un-selected/hidden/inother scene ones, sounds totally bad to me. | * obdata, even some un-selected/hidden/inother scene ones, sounds totally bad to me. | ||||
| * However, changing this is more design than bugfix, not to mention convoluted code below, | * However, changing this is more design than bugfix, not to mention convoluted code below, | ||||
| * so that will be for later. | * so that will be for later. | ||||
| Context not available. | |||||
| /* make new mesh data from the original copy */ | /* make new mesh data from the original copy */ | ||||
| /* note: get the mesh from the original, not from the copy in some | /* note: get the mesh from the original, not from the copy in some | ||||
| * cases this doesnt give correct results (when MDEF is used for eg) | * cases this doesn't give correct results (when MDEF is used for eg) | ||||
| */ | */ | ||||
| dm = mesh_get_derived_final(depsgraph, scene, newob, CD_MASK_MESH); | dm = mesh_get_derived_final(depsgraph, scene, newob, CD_MASK_MESH); | ||||
| Context not available. | |||||