Merge branch 'blender-v4.0-release'
This commit is contained in:
@@ -174,7 +174,7 @@ void load_plydata(PlyData &plyData, Depsgraph *depsgraph, const PLYExportParams
|
||||
BKE_object_get_pre_modified_mesh(&export_object_eval_);
|
||||
|
||||
bool force_triangulation = false;
|
||||
const OffsetIndices faces = mesh->faces();
|
||||
OffsetIndices faces = mesh->faces();
|
||||
for (const int i : faces.index_range()) {
|
||||
if (faces[i].size() > 255) {
|
||||
force_triangulation = true;
|
||||
@@ -186,6 +186,7 @@ void load_plydata(PlyData &plyData, Depsgraph *depsgraph, const PLYExportParams
|
||||
bool manually_free_mesh = false;
|
||||
if (export_params.export_triangulated_mesh || force_triangulation) {
|
||||
mesh = do_triangulation(mesh, export_params.export_triangulated_mesh);
|
||||
faces = mesh->faces();
|
||||
manually_free_mesh = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user