We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 662cd19 + 3ee7d1e commit 58e0fcdCopy full SHA for 58e0fcd
spatial/include/spatial/core/geometry/geometry_type.hpp
@@ -84,7 +84,10 @@ class geometry_t {
84
85
GeometryType GetType() const {
86
// return the type
87
- return Load<GeometryType>(const_data_ptr_cast(data.GetPrefix()));
+ const auto type = Load<GeometryType>(const_data_ptr_cast(data.GetPrefix()));
88
+ const auto props = Load<GeometryProperties>(const_data_ptr_cast(data.GetPrefix() + 1));
89
+ props.CheckVersion();
90
+ return type;
91
}
92
93
GeometryProperties GetProperties() const {
0 commit comments