Compare commits

...

2 Commits

Author SHA1 Message Date
Oğuzhan Koral c88d3c632d skip if elevation or units null (#446)
Build and deploy / build (push) Has been cancelled
Build and deploy / deploy-installers (push) Has been cancelled
2026-01-16 10:27:38 +03:00
Oğuzhan Koral 72f5185992 feat: do not try to hightlight on no selection (#445) 2026-01-13 10:40:31 +03:00
2 changed files with 7 additions and 1 deletions
@@ -530,6 +530,8 @@ module SpeckleConnector3
units = level_data_object['units']
elevation_raw = level_data_object['elevation']
next if elevation_raw.nil? || units.nil?
is_exist = @entities_to_fill.grep(Sketchup::SectionPlane).any? { |sp| sp.name == name }
next if is_exist
@@ -25,7 +25,11 @@ module SpeckleConnector3
sketchup_model.selection.add(entity)
end
sketchup_model.active_view.zoom(sketchup_model.selection)
if sketchup_model.selection.empty?
puts 'No object is selected to highlight'
else
sketchup_model.active_view.zoom(sketchup_model.selection)
end
end
end
end