cityjson / Up3date

A Blender add-on to import, edit and export 3D city models encoded in CityJSON v.1.0 format preserving geometries, attributes and semantics
MIT License
66 stars 12 forks source link

get object name after second space instead of hardcoded length #17

Closed sambaas closed 2 years ago

sambaas commented 2 years ago

getting the name after the second space instead of stripped out hardcoded length of 10 characters allows you to use lod's with decimal places ( we use a dataset with LOD2.2 for example )

liberostelios commented 2 years ago

This seems like a reasonable fix (definitely a better solution than the fixed length before). I think, ideally, a regular expression would be more robust, but this is already a major improvement.

Thanks for submitting.