Fix #114082: Disabling Geometry Nodes is_tool also disables is_modifier

fd9d22ba57 introduced `GeometryNodeAssetTraitFlag` (at that time
`GEO_NODE_ASSET_POINT_CLOUD` was the max enum value), then 6da4b87661
added `GEO_NODE_ASSET_MODIFIER` (but the max enum value was not changed
accordingly).

Pull Request: https://projects.blender.org/blender/blender/pulls/114092
This commit is contained in:
Philipp Oeser
2023-10-24 10:40:28 +02:00
committed by Philipp Oeser
parent 10eb1ac8e4
commit dcdafaa9f5

View File

@@ -915,7 +915,7 @@ typedef enum GeometryNodeAssetTraitFlag {
GEO_NODE_ASSET_POINT_CLOUD = (1 << 5),
GEO_NODE_ASSET_MODIFIER = (1 << 6),
} GeometryNodeAssetTraitFlag;
ENUM_OPERATORS(GeometryNodeAssetTraitFlag, GEO_NODE_ASSET_POINT_CLOUD);
ENUM_OPERATORS(GeometryNodeAssetTraitFlag, GEO_NODE_ASSET_MODIFIER);
/* Data structs, for `node->storage`. */