@galacean/engine-ui 1.4.13 → 1.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.js CHANGED
@@ -1521,7 +1521,7 @@
1521
1521
  set: function set(value) {
1522
1522
  var preCamera = this._renderCamera;
1523
1523
  if (preCamera !== value) {
1524
- this._isSameOrChildEntity(value.entity) && engine.Logger.warn("Camera entity matching or nested within the canvas entity disables canvas auto-adaptation in ScreenSpaceCamera mode.");
1524
+ value && this._isSameOrChildEntity(value.entity) && engine.Logger.warn("Camera entity matching or nested within the canvas entity disables canvas auto-adaptation in ScreenSpaceCamera mode.");
1525
1525
  this._renderCamera = value;
1526
1526
  this._updateCameraObserver();
1527
1527
  var preRenderMode = this._realRenderMode;