mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
FIX: use ppath tag in main 3mf model
Change-Id: I9a91eaa80f4fe5640aec0c954b6b22b144a1812c
This commit is contained in:
parent
e4f6315da0
commit
00a815e507
1 changed files with 3 additions and 2 deletions
|
@ -3098,6 +3098,7 @@ void PlateData::parse_filament_info(GCodeProcessorResult *result)
|
||||||
|
|
||||||
bool _BBS_3MF_Importer::_handle_start_component(const char** attributes, unsigned int num_attributes)
|
bool _BBS_3MF_Importer::_handle_start_component(const char** attributes, unsigned int num_attributes)
|
||||||
{
|
{
|
||||||
|
std::string path = bbs_get_attribute_value_string(attributes, num_attributes, PPATH_ATTR);
|
||||||
int object_id = bbs_get_attribute_value_int(attributes, num_attributes, OBJECTID_ATTR);
|
int object_id = bbs_get_attribute_value_int(attributes, num_attributes, OBJECTID_ATTR);
|
||||||
Transform3d transform = bbs_get_transform_from_3mf_specs_string(bbs_get_attribute_value_string(attributes, num_attributes, TRANSFORM_ATTR));
|
Transform3d transform = bbs_get_transform_from_3mf_specs_string(bbs_get_attribute_value_string(attributes, num_attributes, TRANSFORM_ATTR));
|
||||||
|
|
||||||
|
@ -3112,7 +3113,7 @@ void PlateData::parse_filament_info(GCodeProcessorResult *result)
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
if (m_curr_object) {
|
if (m_curr_object) {
|
||||||
Id id = std::make_pair(m_sub_model_path, object_id);
|
Id id = std::make_pair(m_sub_model_path.empty() ? path : m_sub_model_path, object_id);
|
||||||
m_curr_object->components.emplace_back(id, transform);
|
m_curr_object->components.emplace_back(id, transform);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue