From f29ff7fb7e19d8e8dd5dd01ac527f0675467fbf2 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 24 May 2022 11:55:31 +0200 Subject: 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. --- source/blender/nodes/NOD_geometry_nodes_eval_log.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/nodes') diff --git a/source/blender/nodes/NOD_geometry_nodes_eval_log.hh b/source/blender/nodes/NOD_geometry_nodes_eval_log.hh index 1ad859aa47b..43792a2d90a 100644 --- a/source/blender/nodes/NOD_geometry_nodes_eval_log.hh +++ b/source/blender/nodes/NOD_geometry_nodes_eval_log.hh @@ -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 domain; + std::optional data_type; }; /** Contains information about a geometry set. In most cases this does not store the entire -- cgit v1.2.3