Adding a Text item turns off the base plan lock

This topic has been viewed 2176 times and has 0 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
User avatar
digitaltrails
Posts: 95
Joined: Sun Dec 28, 2014 12:20 am
Country: Wellington, New Zealand, New Zealand
Contact:

Adding a Text item turns off the base plan lock

Post by digitaltrails »

I was trying to understand the code around adding Text items. It always unlocks the base plan due to newBasePlanLocked always being false because !isLabelPartOfBasePlan() is always false:

Code: Select all

      boolean newBasePlanLocked = basePlanLocked && !isLabelPartOfBasePlan(label);
     doAddLabel(this.home, label, newBasePlanLocked); 


and

Code: Select all

    protected boolean isLabelPartOfBasePlan(Label label) {
    return true;
  }
Is adding Text always supposed to unlock the base plan and leave it unlocked?
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest