diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-23 19:02:55 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-23 19:03:14 +0300 |
commit | 3bf7c846eeb4a728c62100b40463874d83f5b3e0 (patch) | |
tree | 9ce90a2339ca5b26918883c3894eec31c87309ff /source/blender/editors/transform | |
parent | e5abce922094cbacd316253be73eeed6ce5a6e92 (diff) |
Fix T57996: Crash - delete node with a driven parameter
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 3f7a41c53a7..73f4c05b2f8 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -6281,8 +6281,9 @@ static void special_aftertrans_update__mask(bContext *C, TransInfo *t) } } -static void special_aftertrans_update__node(bContext *UNUSED(C), TransInfo *t) +static void special_aftertrans_update__node(bContext *C, TransInfo *t) { + Main *bmain = CTX_data_main(C); const bool canceled = (t->state == TRANS_CANCEL); if (canceled && t->remove_on_cancel) { @@ -6294,7 +6295,7 @@ static void special_aftertrans_update__node(bContext *UNUSED(C), TransInfo *t) for (node = ntree->nodes.first; node; node = node_next) { node_next = node->next; if (node->flag & NODE_SELECT) - nodeFreeNode(ntree, node); + nodeDeleteNode(bmain, ntree, node); } } } |