From 55bda78e2e5486dc95346bd23b6d3be766cb678e Mon Sep 17 00:00:00 2001 From: oguzhankoral Date: Tue, 20 Aug 2024 15:36:13 +0300 Subject: [PATCH] Fix the rhino layers --- .../src/speckle_objects/speckle/core/models/layer_collection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speckle_connector_3/src/speckle_objects/speckle/core/models/layer_collection.rb b/speckle_connector_3/src/speckle_objects/speckle/core/models/layer_collection.rb index fa79be62..0083598c 100644 --- a/speckle_connector_3/src/speckle_objects/speckle/core/models/layer_collection.rb +++ b/speckle_connector_3/src/speckle_objects/speckle/core/models/layer_collection.rb @@ -103,7 +103,7 @@ def self.to_native(state, layer_collection, layer_or_folder, entities, &convert_ elements = layer_collection['@elements'] || layer_collection['elements'] name = layer_collection['name'] name = layer_collection['full_path'] if layer_collection['full_path'] - name = SketchupModel::Query::Layer.get_last_increment_layer(sketchup_model, layer_collection['name']) + name = SketchupModel::Query::Layer.get_last_increment_layer(sketchup_model, name) layer = sketchup_model.layers.find { |l| l.display_name == name } layer_or_folder = layer if layer