Skip to content

Commit

Permalink
Face instances to Bilal (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhankoral authored Aug 7, 2024
1 parent de305a3 commit 165eb23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions speckle_connector_3/src/convertors/to_native_v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def create_definition_proxies

definition_name = proxy['name']
definition = state.sketchup_state.sketchup_model.definitions.add(definition_name)
definition.behavior.always_face_camera = proxy['alwaysFaceCamera'] if proxy['alwaysFaceCamera']
@definition_proxies[proxy['applicationId']] = SpeckleObjects::InstanceDefinitionProxy.new(
definition,
proxy['objects'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def initialize(definition, object_ids, max_depth, application_id: nil)
@object_ids = object_ids
self[:objects] = object_ids
self[:maxDepth] = max_depth
self[:alwaysFaceCamera] = definition.behavior.always_face_camera?
end

def add_object_id(object_id)
Expand Down

0 comments on commit 165eb23

Please sign in to comment.