diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-01 04:44:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-01 04:46:39 +0300 |
commit | 552b2287db86ed6e77565672fbccff1d553f823f (patch) | |
tree | 235ad970599910d52c822bb89d23fb467f44f1bd /source/blender/blenkernel/intern/mesh_evaluate.c | |
parent | 8a51af7d1c98500022b1ff789284f9e0a3c038cd (diff) |
Logging: Use CLOG for blenkernel
Part of D4277 by @sobakasu
Diffstat (limited to 'source/blender/blenkernel/intern/mesh_evaluate.c')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_evaluate.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/mesh_evaluate.c b/source/blender/blenkernel/intern/mesh_evaluate.c index 725625bc824..b9cb92224fe 100644 --- a/source/blender/blenkernel/intern/mesh_evaluate.c +++ b/source/blender/blenkernel/intern/mesh_evaluate.c @@ -31,6 +31,8 @@ #include <limits.h> +#include "CLG_log.h" + #include "MEM_guardedalloc.h" #include "DNA_object_types.h" @@ -67,6 +69,8 @@ # include "PIL_time_utildefines.h" #endif +static CLG_LogRef LOG = {"bke.mesh_evaluate"}; + /* -------------------------------------------------------------------- */ /** \name Mesh Normal Calculation * \{ */ @@ -135,7 +139,7 @@ void BKE_mesh_calc_normals_mapping_ex( /* if we are not calculating verts and no verts were passes then we have nothing to do */ if ((only_face_normals == true) && (r_polyNors == NULL) && (r_faceNors == NULL)) { - printf("%s: called with nothing to do\n", __func__); + CLOG_WARN(&LOG, "called with nothing to do"); return; } @@ -168,7 +172,7 @@ void BKE_mesh_calc_normals_mapping_ex( } else { /* eek, we're not corresponding to polys */ - printf("error in %s: tessellation face indices are incorrect. normals may look bad.\n", __func__); + CLOG_ERROR(&LOG, "tessellation face indices are incorrect. normals may look bad."); } } } |