diff --git a/opennurbs_mesh.cpp b/opennurbs_mesh.cpp index ca06b819..44428ae8 100644 --- a/opennurbs_mesh.cpp +++ b/opennurbs_mesh.cpp @@ -14833,7 +14833,7 @@ bool ON_MeshCache::Transform( continue; // NOTE: use_count() == 1 is an approximation in multi-threaded environments // https:// en.cppreference.com/w/cpp/memory/shared_ptr/unique - if (false == item->m_mesh_sp.use_count() == 1) + if (item->m_mesh_sp.use_count() != 1) { // make a copy and transform the copy std::shared_ptr(new ON_Mesh(*mesh)).swap(item->m_mesh_sp);