Fix: Build error in Windows after allocator change, part 2

Similar to 248910be1f
This commit is contained in:
Hans Goudey
2024-07-09 17:21:01 -04:00
parent 879eca663a
commit 0ccb126a14

View File

@@ -66,7 +66,8 @@ static void node_shader_buts_tex_pointdensity(uiLayout *layout, bContext * /*C*/
static void node_shader_init_tex_pointdensity(bNodeTree * /*ntree*/, bNode *node)
{
NodeShaderTexPointDensity *point_density = MEM_cnew<NodeShaderTexPointDensity>("new pd node");
NodeShaderTexPointDensity *point_density = static_cast<NodeShaderTexPointDensity *>(
MEM_callocN(sizeof(NodeShaderTexPointDensity), __func__));
point_density->resolution = 100;
point_density->radius = 0.3f;
point_density->space = SHD_POINTDENSITY_SPACE_OBJECT;