FIX:lost some field when upgrading obj before

jira: STUDIO-12332
Change-Id: Ie5816cd7f118596aa8b4702e044821e3148f840d
This commit is contained in:
zhou.xu 2025-05-21 16:48:57 +08:00 committed by lane.wei
parent 125fd77f59
commit ff11431b6c

View File

@ -287,6 +287,9 @@ Model Model::read_from_file(const std::string&
ObjDialogInOut in_out;
in_out.model = &model;
in_out.lost_material_name = obj_info.lost_material_name;
in_out.ml_region = obj_info.ml_region;
in_out.ml_name = obj_info.ml_name;
in_out.ml_id = obj_info.ml_id;
if (obj_info.vertex_colors.size() > 0) {
if (objFn) { // 1.result is ok and pop up a dialog
in_out.input_colors = std::move(obj_info.vertex_colors);