1 parent 1206fbb commit 58714c2Copy full SHA for 58714c2
1 file changed
extensions/reviewed/Light3D.json
@@ -598,7 +598,11 @@
598
" spotLight.castShadow = false;",
599
" spotLight.visible = false;",
600
"",
601
- " if (!object.isHidden()) {",
+ " // Instances hidden at start stay visible in the editor, but their light must not shine.",
602
+ " const isHiddenAtStartInEditor =",
603
+ " !!editor && !!editor.isInstanceHiddenAtStart && editor.isInstanceHiddenAtStart(object);",
604
+ "",
605
+ " if (!object.isHidden() && !isHiddenAtStartInEditor) {",
606
" let isSelected = false;",
607
" if (editor) {",
608
" const selectedObject = editor._selection.getLastSelectedObject();",
0 commit comments