Commit: 470613cdf220f20a5bbc466f9337dd301f2a56fc Author: Bastien Montagne Date: Mon Jun 12 15:44:48 2017 +0200 Branches: id_override_static https://developer.blender.org/rB470613cdf220f20a5bbc466f9337dd301f2a56fc
Cleanup: remove unused testcode. =================================================================== M source/blender/editors/object/object_relations.c =================================================================== diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index d7d31cf44f3..f5c13c123ff 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -2416,20 +2416,6 @@ static int make_override_exec(bContext *C, wmOperator *UNUSED(op)) IDOverride *override = BKE_override_init(&locobj->id, &refobj->id); locobj->id.flag |= LIB_AUTOOVERRIDE; - /* For testing only of course! This will have to be auto-generated/editable by user... */ - if (0) { - IDOverrideProperty *overp = MEM_callocN(sizeof(IDOverrideProperty), __func__); - overp->rna_path = BLI_strdup("location"); - - IDOverridePropertyOperation *overp_op = MEM_callocN(sizeof(IDOverridePropertyOperation), __func__); - overp_op->subitem_local_index = overp_op->subitem_reference_index = -1; - overp_op->operation = IDOVERRIDE_REPLACE; - - BLI_addtail(&overp->operations, overp_op); - - BLI_addtail(&override->properties, overp); - } - WM_event_add_notifier(C, NC_WINDOW, NULL); return OPERATOR_FINISHED; _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs