mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 00:29:19 +02:00
fix(scenery): triangles node cut short by the end of data no longer hangs the loader
This commit is contained in:
@@ -309,7 +309,8 @@ shape_node::import( cParser &Input, scene::node_data const &Nodedata ) {
|
||||
}
|
||||
token = Input.getToken<std::string>();
|
||||
|
||||
} while( token != "endtri" );
|
||||
} while( token != "endtri"
|
||||
&& false == token.empty() ); // data which ends without closing the node would otherwise keep the loop going forever
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user