You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cocos/2d/CCScene.h
+8-8
Original file line number
Diff line number
Diff line change
@@ -137,9 +137,9 @@ class CC_DLL Scene : public Node
137
137
friendclassRenderer;
138
138
139
139
std::vector<Camera*> _cameras; //weak ref to Camera
140
-
Camera* _defaultCamera; //weak ref, default camera created by scene, _cameras[0], Caution that the default camera can not be added to _cameras before onEnter is called
141
-
bool _cameraOrderDirty; // order is dirty, need sort
142
-
EventListenerCustom* _event;
140
+
Camera* _defaultCamera = nullptr; //weak ref, default camera created by scene, _cameras[0], Caution that the default camera can not be added to _cameras before onEnter is called
141
+
bool _cameraOrderDirty = true; // order is dirty, need sort
142
+
EventListenerCustom* _event = nullptr;
143
143
144
144
std::vector<BaseLight *> _lights;
145
145
@@ -183,12 +183,12 @@ class CC_DLL Scene : public Node
0 commit comments