Print at Dec 15, 2025, 7:34:10 PM

Posted by Puybaret at Sep 9, 2010, 11: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