Skip to content

Commit

Permalink
Fix(dui3): CNX-291 do not even try to delete "Layer0" (#366)
Browse files Browse the repository at this point in the history
* Do not try to delete Untagged even if it is changed

* Fix removing active layer with correct condition
  • Loading branch information
oguzhankoral authored Aug 14, 2024
1 parent 5ae78fb commit 3713abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speckle_connector_3/src/speckle_objects/relations/layer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def self.deep_clean(sketchup_model, project_id, model_id)
if l == sketchup_model.active_layer
sketchup_model.active_layer = sketchup_model.layers.find { |ly| ly.name == "Layer0" }
end
sketchup_model.layers.remove_layer(l)
sketchup_model.layers.remove_layer(l) unless l.name == "Layer0"
end
end

Expand Down

0 comments on commit 3713abd

Please sign in to comment.