Skip to content

Commit 0b1befd

Browse files
committed
fix(Model): apply filter components only on active components
1 parent aa15606 commit 0b1befd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/geode/model/helpers/model_component_filter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace
5757
std::vector< geode::ComponentID >& removed_components )
5858
{
5959
for( const auto& surface_uuid : find_components_to_delete(
60-
model, model.surfaces(), model.nb_surfaces() ) )
60+
model, model.active_surfaces(), model.nb_active_surfaces() ) )
6161
{
6262
filter.remove_surface( model.surface( surface_uuid ) );
6363
removed_components.emplace_back(
@@ -71,7 +71,7 @@ namespace
7171
std::vector< geode::ComponentID >& removed_components )
7272
{
7373
for( const auto& line_uuid : find_components_to_delete(
74-
model, model.lines(), model.nb_lines() ) )
74+
model, model.active_lines(), model.nb_active_lines() ) )
7575
{
7676
filter.remove_line( model.line( line_uuid ) );
7777
removed_components.emplace_back(
@@ -85,7 +85,7 @@ namespace
8585
std::vector< geode::ComponentID >& removed_components )
8686
{
8787
for( const auto& corner_uuid : find_components_to_delete(
88-
model, model.corners(), model.nb_corners() ) )
88+
model, model.active_corners(), model.nb_active_corners() ) )
8989
{
9090
filter.remove_corner( model.corner( corner_uuid ) );
9191
removed_components.emplace_back(

0 commit comments

Comments
 (0)