Skip to content

Commit

Permalink
Disable receive definition caching (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhankoral authored Aug 15, 2024
1 parent a2ba682 commit 0ad4e15
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,17 @@ def self.to_native(state, definition_obj, layer, _entities, &convert_to_native)
# FIXME: Check later this is a valid check or not. Maybe unnecessary? If necessary document it!
# Check definitions from sketchup_model with name and application id
definition_name = get_definition_name(definition_obj)
application_id = definition_obj['applicationId']
definition = sketchup_model.definitions[definition_name]

# FIXME: Nice old friend. Bye bye for now. I'll miss you.
# application_id = definition_obj['applicationId']
# Check any entities of definition changed
entities_updated = entities_updated?(definition, definition_obj)
# entities_updated = entities_updated?(definition, definition_obj)

if definition && !entities_updated &&
(definition.name == definition_name || definition.guid == application_id)
return state, [definition]
end
# if definition && !entities_updated &&
# (definition.name == definition_name || definition.guid == application_id)
# return state, [definition]
# end

geometry = definition_obj['geometry'] || definition_obj['@geometry'] || definition_obj['displayValue']

Expand Down

0 comments on commit 0ad4e15

Please sign in to comment.