diff options
author | Jacques Lucke <jacques@blender.org> | 2021-03-10 13:53:17 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-03-10 13:53:31 +0300 |
commit | 368647bd25d6bb0b32f5e439838c06e0e46ac8da (patch) | |
tree | c7c427ef51416358d34413b67f74836db3f96e47 /source/blender/editors/space_spreadsheet | |
parent | 122fefcc8589a09d4e89ed3045f29f07ec6564e9 (diff) |
Geometry Nodes: move geometry component type enum to C
This allows us to use it in rna for the spreadsheet editor.
Diffstat (limited to 'source/blender/editors/space_spreadsheet')
-rw-r--r-- | source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc b/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc index fa1a3549b86..8459973ed4a 100644 --- a/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc +++ b/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc @@ -408,7 +408,7 @@ std::unique_ptr<SpreadsheetDrawer> spreadsheet_drawer_from_geometry_attributes(c "geometry set"); const AttributeDomain domain = ATTR_DOMAIN_POINT; - const GeometryComponentType component_type = GeometryComponentType::Mesh; + const GeometryComponentType component_type = GEO_COMPONENT_TYPE_MESH; const GeometryComponent *component = geometry_set.get_component_for_read(component_type); if (component == nullptr) { return {}; @@ -425,7 +425,7 @@ std::unique_ptr<SpreadsheetDrawer> spreadsheet_drawer_from_geometry_attributes(c } /* The filter below only works for mesh vertices currently. */ - BLI_assert(domain == ATTR_DOMAIN_POINT && component_type == GeometryComponentType::Mesh); + BLI_assert(domain == ATTR_DOMAIN_POINT && component_type == GEO_COMPONENT_TYPE_MESH); Span<int64_t> visible_rows = filter_visible_mesh_vertex_rows( C, object_eval, static_cast<const MeshComponent *>(component), *resources); |