Skip to content

Commit 88364d5

Browse files
authored
Fix enabled flag on camera and light (playcanvas#3408)
1 parent 23b0e7a commit 88364d5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/framework/components/camera/system.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ class CameraComponentSystem extends ComponentSystem {
107107
clearDepthBuffer: c.clearDepthBuffer,
108108
clearStencilBuffer: c.clearStencilBuffer,
109109
cullFaces: c.cullFaces,
110+
enabled: c.enabled,
110111
farClip: c.farClip,
111112
flipFaces: c.flipFaces,
112113
fov: c.fov,

src/resources/parser/glb-parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,6 +1434,7 @@ const createCamera = function (gltfCamera, node) {
14341434
const createLight = function (gltfLight, node) {
14351435

14361436
const lightProps = {
1437+
enabled: false,
14371438
type: gltfLight.type === "point" ? "omni" : gltfLight.type,
14381439
color: gltfLight.hasOwnProperty('color') ? new Color(gltfLight.color) : Color.WHITE,
14391440
range: gltfLight.hasOwnProperty('range') ? gltfLight.range : Number.MAX_VALUE,

0 commit comments

Comments
 (0)