Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-05-02 12:49:27 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-05-02 12:49:27 +0300
commit404758cc2075931d62bcb14e7ef3310314d2a773 (patch)
tree13e345ae859643f8d41fcdff81156ecd19375c7e /source/blender/makesrna/intern/rna_object.c
parent77ac911b3c47546a8564b00e5c482a59142689e4 (diff)
Cleanup.
Diffstat (limited to 'source/blender/makesrna/intern/rna_object.c')
-rw-r--r--source/blender/makesrna/intern/rna_object.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index 7359b7d7158..2d91ac28c5b 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -1180,24 +1180,6 @@ bool rna_Object_constraints_override_apply(
// printf("%s: We inserted a constraint...\n", __func__);
return true;
-#if 0
- /* AnimData is a special case, since you cannot edit/replace it, it's either existent or not. */
- AnimData *adt_dst = RNA_property_pointer_get(ptr_dst, prop_dst).data;
- AnimData *adt_src = RNA_property_pointer_get(ptr_src, prop_src).data;
-
- if (adt_dst == NULL && adt_src != NULL) {
- /* Copy anim data from reference into final local ID. */
- BKE_animdata_copy_id(NULL, ptr_dst->id.data, ptr_src->id.data, false, true);
- return true;
- }
- else if (adt_dst != NULL && adt_src == NULL) {
- /* Override has cleared/removed anim data from its reference. */
- BKE_animdata_free(ptr_dst->id.data, true);
- return true;
- }
-
- return false;
-#endif
}
static ModifierData *rna_Object_modifier_new(Object *object, bContext *C, ReportList *reports,