Fix T43890: Crash, Alt-D over operator redo button
This commit is contained in:
parent
ffee7f1a58
commit
90e1b83696
@ -494,9 +494,12 @@ static int remove_driver_button_exec(bContext *C, wmOperator *op)
|
|||||||
if (ptr.id.data && ptr.data && prop) {
|
if (ptr.id.data && ptr.data && prop) {
|
||||||
char *path = BKE_animdata_driver_path_hack(C, &ptr, prop, NULL);
|
char *path = BKE_animdata_driver_path_hack(C, &ptr, prop, NULL);
|
||||||
|
|
||||||
|
if (path) {
|
||||||
success = ANIM_remove_driver(op->reports, ptr.id.data, path, index, 0);
|
success = ANIM_remove_driver(op->reports, ptr.id.data, path, index, 0);
|
||||||
|
|
||||||
MEM_freeN(path);
|
MEM_freeN(path);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (success) {
|
if (success) {
|
||||||
/* send updates */
|
/* send updates */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user