Fix #100485: Alembic export crash with names containing a forward slash
As Alembic stores hierarchies as paths separated by a forward slash, such character cannot be used in a name. This resulted in an uncaught thrown exception. To fix this, replace '/' with '_' like for other illegal characters.
This commit is contained in:
@@ -84,6 +84,7 @@ std::string ABCHierarchyIterator::make_valid_name(const std::string &name) const
|
||||
std::replace(abc_name.begin(), abc_name.end(), ' ', '_');
|
||||
std::replace(abc_name.begin(), abc_name.end(), '.', '_');
|
||||
std::replace(abc_name.begin(), abc_name.end(), ':', '_');
|
||||
std::replace(abc_name.begin(), abc_name.end(), '/', '_');
|
||||
return abc_name;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user