diff options
Diffstat (limited to 'intern/cycles/render/mesh.cpp')
-rw-r--r-- | intern/cycles/render/mesh.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/render/mesh.cpp b/intern/cycles/render/mesh.cpp index 5f62da8f18b..1f6fcdd0abe 100644 --- a/intern/cycles/render/mesh.cpp +++ b/intern/cycles/render/mesh.cpp @@ -333,7 +333,7 @@ void Mesh::add_vertex(float3 P) tag_verts_modified(); if (get_num_subd_faces()) { - vert_patch_uv.push_back_reserved(make_float2(0.0f, 0.0f)); + vert_patch_uv.push_back_reserved(zero_float2()); tag_vert_patch_uv_modified(); } } @@ -344,7 +344,7 @@ void Mesh::add_vertex_slow(float3 P) tag_verts_modified(); if (get_num_subd_faces()) { - vert_patch_uv.push_back_slow(make_float2(0.0f, 0.0f)); + vert_patch_uv.push_back_slow(zero_float2()); tag_vert_patch_uv_modified(); } } @@ -494,7 +494,7 @@ void Mesh::compute_bounds() if (!bnds.valid()) { /* empty mesh */ - bnds.grow(make_float3(0.0f, 0.0f, 0.0f)); + bnds.grow(zero_float3()); } bounds = bnds; |