[Bf-blender-cvs] [900a9a4b06a] master: Sculpt: Cleanup, use more suitable utility function

Sergey Sharybin noreply at git.blender.org
Wed Sep 25 12:45:38 CEST 2019


Commit: 900a9a4b06a6d8deb2465c2b4b9f3fb9e7fc1bdd
Author: Sergey Sharybin
Date:   Wed Sep 25 12:44:42 2019 +0200
Branches: master
https://developer.blender.org/rB900a9a4b06a6d8deb2465c2b4b9f3fb9e7fc1bdd

Sculpt: Cleanup, use more suitable utility function

No functional changes, just more clear semantic and shorter call.

===================================================================

M	source/blender/editors/sculpt_paint/sculpt.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 97a1f7403bd..c07fa1d894d 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -6338,9 +6338,9 @@ bool sculpt_cursor_geometry_info_update(bContext *C,
   ss = ob->sculpt;
 
   if (!ss->pbvh) {
-    copy_v3_fl(out->location, 0.0f);
-    copy_v3_fl(out->normal, 0.0f);
-    copy_v3_fl(out->active_vertex_co, 0.0f);
+    zero_v3(out->location);
+    zero_v3(out->normal);
+    zero_v3(out->active_vertex_co);
     return false;
   }
 
@@ -6362,9 +6362,9 @@ bool sculpt_cursor_geometry_info_update(bContext *C,
 
   /* Cursor is not over the mesh, return default values */
   if (!srd.hit) {
-    copy_v3_fl(out->location, 0.0f);
-    copy_v3_fl(out->normal, 0.0f);
-    copy_v3_fl(out->active_vertex_co, 0.0f);
+    zero_v3(out->location);
+    zero_v3(out->normal);
+    zero_v3(out->active_vertex_co);
     return false;
   }



More information about the Bf-blender-cvs mailing list