Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/intern/bpy_rna_anim.c
| Show First 20 Lines • Show All 481 Lines • ▼ Show 20 Lines | if (prop) { | ||||
| */ | */ | ||||
| bool found = false; | bool found = false; | ||||
| int i; | int i; | ||||
| /* try to find index of beztriple to get rid of */ | /* try to find index of beztriple to get rid of */ | ||||
| i = BKE_fcurve_bezt_binarysearch_index(fcu->bezt, cfra, fcu->totvert, &found); | i = BKE_fcurve_bezt_binarysearch_index(fcu->bezt, cfra, fcu->totvert, &found); | ||||
| if (found) { | if (found) { | ||||
| /* delete the key at the index (will sanity check + do recalc afterwards) */ | /* delete the key at the index (will sanity check + do recalc afterwards) */ | ||||
| delete_fcurve_key(fcu, i, 1); | BKE_fcurve_delete_key(fcu, i); | ||||
| BKE_fcurve_handles_recalc(fcu); | |||||
sybren: missing call to `BKE_fcurve_handles_recalc(fcu);` | |||||
| result = true; | result = true; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| BKE_reportf(&reports, RPT_ERROR, "Could not resolve path (%s)", path_full); | BKE_reportf(&reports, RPT_ERROR, "Could not resolve path (%s)", path_full); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines | |||||
missing call to BKE_fcurve_handles_recalc(fcu);