From aa2079bad34c045d3c95fd99826c5cd3b160db51 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 26 Nov 2018 16:26:47 +1100 Subject: [PATCH] Fix crash accessing mesh.point_normals default This memory needs to be static, in this case the argument isn't needed so remove it. --- source/blender/editors/mesh/editmesh_tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 15be766250d..c9fc54fd794 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -7554,7 +7554,7 @@ void MESH_OT_point_normals(struct wmOperatorType *ot) RNA_def_boolean(ot->srna, "align", false, "Align", "Make all affected normals parallel"); - RNA_def_float_vector(ot->srna, "target_location", 3, (float[3]){0.0f, 0.0f, 0.0f}, -FLT_MAX, FLT_MAX, + RNA_def_float_vector(ot->srna, "target_location", 3, NULL, -FLT_MAX, FLT_MAX, "Target", "Target location to which normals will point", -1000.0f, 1000.0f); RNA_def_boolean(ot->srna, "spherize", false,