Skip to content

Commit

Permalink
Make label and polyline part of non base plan
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbrechtL committed Jun 9, 2019
1 parent 7bd40b9 commit 3402b97
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
# Ignoring original svn files
.svn/
classes/
Expand Up @@ -519,7 +519,7 @@ private static void doDeleteLabel(Home home, Label label, boolean basePlanLocked
* Returns <code>true</code>.
*/
protected boolean isLabelPartOfBasePlan(Label label) {
return true;
return false;
}

/**
Expand Down
9 changes: 8 additions & 1 deletion src/com/eteks/sweethome3d/viewcontroller/PlanController.java
Expand Up @@ -866,7 +866,14 @@ public String getPresentationName() {
protected boolean isItemPartOfBasePlan(Selectable item) {
if (item instanceof HomePieceOfFurniture) {
return isPieceOfFurniturePartOfBasePlan((HomePieceOfFurniture)item);
} else {
}
else if(item instanceof Label) {
return false;
}
else if (item instanceof Polyline) {
return false;
}
else {
return !(item instanceof ObserverCamera);
}
}
Expand Down

0 comments on commit 3402b97

Please sign in to comment.