mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 04:37:52 -06:00
FIX:Replace non-UTF8 characters in STEP model names with IDs on import
jira: STUDIO-8055 Change-Id: I9255a7a871ebc9920ec683d1a2a80cd53ada0f10 (cherry picked from commit 89be3166e286346254a08c8efc188e0cea83f2a4)
This commit is contained in:
parent
61ebddf9b8
commit
e1477e642c
2 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,7 @@ static void getNamedSolids(const TopLoc_Location& location, const std::string& p
|
|||
if (referredLabel.FindAttribute(TDataStd_Name::GetID(), shapeName))
|
||||
name = TCollection_AsciiString(shapeName->Get()).ToCString();
|
||||
|
||||
if (name == "")
|
||||
if (name == "" || !StepPreProcessor::isUtf8(name))
|
||||
name = std::to_string(id++);
|
||||
std::string fullName{name};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue