File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -192,17 +192,20 @@ std::optional<dbOrientType3D> dbOrientType3D::fromString(
192192 const std::string orient)
193193{
194194 std::string orient_str = orient;
195- bool flipZ = false ;
195+ bool mirror_z = false ;
196196 // check if the orient string contains "MZ"
197+ if (orient_str == " MZ" ) {
198+ return dbOrientType3D (dbOrientType::R0, true );
199+ }
197200 if (orient_str.find (" MZ_" ) != std::string::npos) {
198- flipZ = true ;
201+ mirror_z = true ;
199202 orient_str = orient_str.erase (orient_str.find (" MZ_" ), 3 );
200203 }
201204 auto opt = dbOrientType::fromString (orient_str.c_str ());
202205 if (!opt.has_value ()) {
203206 return std::nullopt ;
204207 }
205- return dbOrientType3D (opt.value (), flipZ );
208+ return dbOrientType3D (opt.value (), mirror_z );
206209}
207210
208211dbOrientType3D::dbOrientType3D (const char * orient)
You can’t perform that action at this time.
0 commit comments