diff --git a/extensions/reviewed/Light3D.json b/extensions/reviewed/Light3D.json index 63f119640..38da6092f 100644 --- a/extensions/reviewed/Light3D.json +++ b/extensions/reviewed/Light3D.json @@ -10,7 +10,7 @@ "name": "Light3D", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/f237ae4e3b857c556846c7b2c0b132556fd4bcdeff217034b4d9c97dc1aab1d6_lightbulb-on-outline.svg", "shortDescription": "A collection of light object for 3D.", - "version": "1.0.4", + "version": "1.0.5", "description": "A collection of light object for 3D.", "origin": { "identifier": "Light3D", @@ -598,7 +598,11 @@ " spotLight.castShadow = false;", " spotLight.visible = false;", "", - " if (!object.isHidden()) {", + " // Instances hidden at start stay visible in the editor, but their light must not shine.", + " const isHiddenAtStartInEditor =", + " !!editor && !!editor.isInstanceHiddenAtStart && editor.isInstanceHiddenAtStart(object);", + "", + " if (!object.isHidden() && !isHiddenAtStartInEditor) {", " let isSelected = false;", " if (editor) {", " const selectedObject = editor._selection.getLastSelectedObject();",