Print at Dec 24, 2025, 8:04:48 AM

Posted by Puybaret at Sep 9, 2010, 9:18:02 PM
Re: Easy 3D light bulb positioning
db4tech, you should use the || (or) operator.
Thus, the condition you want to change:

if (ignoreWindowPanes
&& shapeName != null
&& shapeName.startsWith(ModelManager.WINDOW_PANE_SHAPE_PREFIX)
&& isDoorOrWindowChild(shape)) {
return;
}

will become:

if (shapeName != null
&& ((ignoreWindowPanes
&& shapeName.startsWith(ModelManager.WINDOW_PANE_SHAPE_PREFIX)
&& isDoorOrWindowChild(shape))
|| shapeName.startsWith("sweethome3d_light"))) {
return;
}

Good luck! wink
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator