[Bf-blender-cvs] [aa2079bad34] blender2.8: Fix crash accessing mesh.point_normals default
Campbell Barton
noreply at git.blender.org
Mon Nov 26 06:28:15 CET 2018
Commit: aa2079bad34c045d3c95fd99826c5cd3b160db51
Author: Campbell Barton
Date: Mon Nov 26 16:26:47 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBaa2079bad34c045d3c95fd99826c5cd3b160db51
Fix crash accessing mesh.point_normals default
This memory needs to be static,
in this case the argument isn't needed so remove it.
===================================================================
M source/blender/editors/mesh/editmesh_tools.c
===================================================================
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,
More information about the Bf-blender-cvs
mailing list