Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-05-24 12:55:31 +0300
committerJacques Lucke <jacques@blender.org>2022-05-24 12:55:44 +0300
commitf29ff7fb7e19d8e8dd5dd01ac527f0675467fbf2 (patch)
treea939aaac1ecc12b1fc906601f09471ee08f83cef /source/blender/nodes
parentd1340e1bb250f6ec4b9781f4b9c5f01a9e4da9e9 (diff)
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.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/NOD_geometry_nodes_eval_log.hh5
1 files changed, 3 insertions, 2 deletions
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<AttributeDomain> domain;
+ std::optional<CustomDataType> data_type;
};
/** Contains information about a geometry set. In most cases this does not store the entire