Skip to content

Commit

Permalink
Fix (Scene): missing views from Revit
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhankoral authored Nov 13, 2023
2 parents de7dd34 + e07ff1a commit 613e793
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ def self.collect_mapped_entities(speckle_state, sketchup_model, units, preferenc

def self.to_native(state, model_collection, layer, entities, &convert_to_native)
elements = model_collection['elements']
views = model_collection['@Views']
if views
views.each do |view|
new_state, _converted_entities = convert_to_native.call(state, view, layer, entities)
state = new_state
end
end

elements.each do |element|
new_state, _converted_entities = convert_to_native.call(state, element, layer, entities)
Expand Down

0 comments on commit 613e793

Please sign in to comment.