Skip to content

Commit

Permalink
only add the floor when all the items are above 0 or empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Harrington committed May 29, 2024
1 parent 30cc2d9 commit 4553f7a
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,16 @@ public void initializeModel(String name) {
contacts = builder.addContact();
if (fixedObjects == null) {
fixedObjects = new ArrayList<>();
fixedObjects.add(floor);
}
boolean hasFloor=false;
for(CSG item:fixedObjects) {
if(item.getMaxZ()>0)
continue;
hasFloor=true;
}
if(hasFloor)
fixedObjects.add(floor);


}

Expand Down

0 comments on commit 4553f7a

Please sign in to comment.