Fix T98152: Named Attribute node changes data type for non-existant attributes

Skip changing the data type in the node if it is not known.
This commit is contained in:
Jacques Lucke
2022-05-24 11:55:31 +02:00
parent d1340e1bb2
commit f29ff7fb7e
3 changed files with 7 additions and 6 deletions

View File

@@ -89,8 +89,9 @@ class GFieldValueLog : public ValueLog {
struct GeometryAttributeInfo {
std::string name;
AttributeDomain domain;
CustomDataType data_type;
/** Can be empty when #name does not actually exist on a geometry yet. */
std::optional<AttributeDomain> domain;
std::optional<CustomDataType> data_type;
};
/** Contains information about a geometry set. In most cases this does not store the entire