Features

Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 1
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1113 times and has 0 replies Next Thread
digitaltrails
Member



New Zealand
Joined: Dec 28, 2014
Post Count: 71
Status: Offline
Reply to this Post  Reply with Quote 
Adding a Text item turns off the base plan lock

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:

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


and
protected boolean isLabelPartOfBasePlan(Label label) {
return true;
}


Is adding Text always supposed to unlock the base plan and leave it unlocked?
[Mar 27, 2019, 3:52:36 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2020 eTeks - All rights reserved