Skip to content

Commit

Permalink
Fix IfcBuildingStorey elevation
Browse files Browse the repository at this point in the history
  • Loading branch information
janbrouwer committed Oct 23, 2024
1 parent c5cb2ce commit b3ef69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bt_ifcmanager/lib/lib_ifc/entity_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def assign_entity_attributes(ifc_entity, placement_parent)
# could be better set from within IfcBuildingStorey?
return unless ifc_entity.is_a?(@ifc_module::IfcBuildingStorey)

return unless ['IFC 4x3', 'IFC4X3_ADD2'].include?(Settings.ifc_version_compact)
return unless %w[IFC2X3 IFC4].include?(Settings.ifc_version_compact)

elevation = @objectplacement.ifc_total_transformation.origin.z
ifc_entity.elevation = Types::IfcLengthMeasure.new(@ifc_model, elevation)
Expand Down

0 comments on commit b3ef69a

Please sign in to comment.