Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-09-25 13:44:42 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-09-25 13:44:42 +0300
commit900a9a4b06a6d8deb2465c2b4b9f3fb9e7fc1bdd (patch)
tree47070caefee89ddf88a8f3a7d7281ee7ace0c164 /source/blender/editors
parentd6dcf5b1ffd158558436f02213ccba0a7f8cc3cc (diff)
Sculpt: Cleanup, use more suitable utility function
No functional changes, just more clear semantic and shorter call.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c12
1 files changed, 6 insertions, 6 deletions
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;
}