|
14 | 14 | import com.jme3.scene.Spatial; |
15 | 15 | import com.jme3.scene.control.Control; |
16 | 16 | import com.ss.editor.control.transform.EditorTransformSupport; |
| 17 | +import com.ss.editor.extension.scene.InvisibleObject; |
17 | 18 | import com.ss.editor.model.undo.editor.ChangeConsumer; |
18 | 19 | import com.ss.editor.ui.Icons; |
19 | 20 | import com.ss.editor.ui.control.model.node.control.ControlTreeNode; |
|
31 | 32 | import com.ss.editor.ui.control.model.tree.action.operation.RenameNodeOperation; |
32 | 33 | import com.ss.editor.ui.control.tree.NodeTree; |
33 | 34 | import com.ss.editor.ui.control.tree.node.TreeNode; |
| 35 | +import com.ss.rlib.util.StringUtils; |
| 36 | +import com.ss.rlib.util.array.Array; |
| 37 | +import com.ss.rlib.util.array.ArrayFactory; |
34 | 38 | import javafx.collections.ObservableList; |
35 | 39 | import javafx.scene.control.Menu; |
36 | 40 | import javafx.scene.control.MenuItem; |
37 | 41 | import javafx.scene.image.ImageView; |
38 | 42 | import org.jetbrains.annotations.NotNull; |
39 | 43 | import org.jetbrains.annotations.Nullable; |
40 | | -import com.ss.rlib.util.StringUtils; |
41 | | -import com.ss.rlib.util.array.Array; |
42 | | -import com.ss.rlib.util.array.ArrayFactory; |
43 | 44 |
|
44 | 45 | /** |
45 | 46 | * The implementation of the {@link TreeNode} to represent a {@link Spatial} in an editor. |
@@ -175,7 +176,11 @@ public Array<TreeNode<?>> getChildren(@NotNull final NodeTree<?> nodeTree) { |
175 | 176 | final Spatial element = getElement(); |
176 | 177 |
|
177 | 178 | final LightList lightList = element.getLocalLightList(); |
178 | | - lightList.forEach(light -> result.add(FACTORY_REGISTRY.createFor(light))); |
| 179 | + lightList.forEach(light -> { |
| 180 | + if (!(light instanceof InvisibleObject)) { |
| 181 | + result.add(FACTORY_REGISTRY.createFor(light)); |
| 182 | + } |
| 183 | + }); |
179 | 184 |
|
180 | 185 | final int numControls = element.getNumControls(); |
181 | 186 |
|
|
0 commit comments