diff options
Diffstat (limited to 'source/blender/nodes/composite/nodes/node_composite_defocus.cc')
-rw-r--r-- | source/blender/nodes/composite/nodes/node_composite_defocus.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_defocus.cc b/source/blender/nodes/composite/nodes/node_composite_defocus.cc index 0ee8a8da1e8..a9b4ac066e5 100644 --- a/source/blender/nodes/composite/nodes/node_composite_defocus.cc +++ b/source/blender/nodes/composite/nodes/node_composite_defocus.cc @@ -46,7 +46,7 @@ static void cmp_node_defocus_declare(NodeDeclarationBuilder &b) static void node_composit_init_defocus(bNodeTree *UNUSED(ntree), bNode *node) { /* defocus node */ - NodeDefocus *nbd = (NodeDefocus *)MEM_callocN(sizeof(NodeDefocus), "node defocus data"); + NodeDefocus *nbd = MEM_cnew<NodeDefocus>(__func__); nbd->bktype = 0; nbd->rotation = 0.0f; nbd->preview = 1; |