Commit: 8576efc98a8f84eded32c406e83de3fe5f17f3e6
Author: Sergey Sharybin
Date: Wed Jan 11 15:59:32 2017 +0100
Branches: master
https://developer.blender.org/rB8576efc98a8f84eded32c406e83de3fe5f17f3e6
RNA: Expose autosmooth face splitting
This way render engine can request mesh to be auto-split and not
worry about implementing this functionality on it's own.
Please note that this split is to be performed prior to tessellation.
===================================================================
M source/blender/makesrna/intern/rna_mesh_api.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_mesh_api.c
b/source/blender/makesrna/intern/rna_mesh_api.c
index 4a078ef918..cd48bc1a3d 100644
--- a/source/blender/makesrna/intern/rna_mesh_api.c
+++ b/source/blender/makesrna/intern/rna_mesh_api.c
@@ -240,6 +240,9 @@ void RNA_api_mesh(StructRNA *srna)
func = RNA_def_function(srna, "free_normals_split",
"rna_Mesh_free_normals_split");
RNA_def_function_ui_description(func, "Free split vertex normals");
+ func = RNA_def_function(srna, "split_faces", "BKE_mesh_split_faces");
+ RNA_def_function_ui_description(func, "Spli faces based on the edge
angle");
+
func = RNA_def_function(srna, "calc_tangents",
"rna_Mesh_calc_tangents");
RNA_def_function_flag(func, FUNC_USE_REPORTS);
RNA_def_function_ui_description(func,
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs