Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/armature/armature_naming.c
| Context not available. | |||||
| #include "DNA_armature_types.h" | #include "DNA_armature_types.h" | ||||
| #include "DNA_constraint_types.h" | #include "DNA_constraint_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_camera_types.h" | |||||
| #include "DNA_gpencil_types.h" | #include "DNA_gpencil_types.h" | ||||
| #include "DNA_gpencil_modifier_types.h" | #include "DNA_gpencil_modifier_types.h" | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| /* fix camera focus */ | |||||
| if (ob->type == OB_CAMERA) { | |||||
| Camera *cam = (Camera *)ob->data; | |||||
| if (cam->dof.focus_object->data == arm){ | |||||
| if (STREQ(cam->dof.focus_subtarget, oldname)) { | |||||
| BLI_strncpy(cam->dof.focus_subtarget, newname, MAXBONENAME); | |||||
| DEG_id_tag_update(&cam->id, ID_RECALC_COPY_ON_WRITE); | |||||
| } | |||||
| } | |||||
| } | |||||
| /* fix grease pencil modifiers and vertex groups */ | /* fix grease pencil modifiers and vertex groups */ | ||||
| if (ob->type == OB_GPENCIL) { | if (ob->type == OB_GPENCIL) { | ||||
| Context not available. | |||||