Merge branch 'master' into blender2.8
[blender.git] / source / blender / alembic / intern / abc_mesh.cc
index 52d14f847285dca13d0e2234e85f7f5e90ad2ff5..56fa0a93532f36e74f5b0366d9bf7930e497fd84 100644 (file)
@@ -1325,7 +1325,7 @@ void AbcSubDReader::readObjectData(Main *bmain, const Alembic::Abc::ISampleSelec
                        MEdge *edge = find_edge(edges, mesh->totedge, (*indices)[i], (*indices)[i + 1]);
 
                        if (edge) {
-                               edge->crease = FTOCHAR((*sharpnesses)[s]);
+                               edge->crease = unit_float_to_uchar_clamp((*sharpnesses)[s]);
                        }
                }