Re: Easy 3D light bulb positioning

by Puybaret » Thu Sep 09, 2010 9:18 pm

db4tech, you should use the || (or) operator.
Thus, the condition you want to change:

Code: Select all

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

Code: Select all

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