|
@@ -94347,8 +94347,8 @@ var AbstractViewer = (function () {
|
|
|
_this.onModelLoadedObservable.notifyObserversWithPromise(model)
|
|
|
.then(function () {
|
|
|
_this._configureLights(_this._configuration.lights);
|
|
|
- if (_this._configuration.camera) {
|
|
|
- _this._configureCamera(_this._configuration.camera, model);
|
|
|
+ if (_this._configuration.camera || !_this.scene.activeCamera) {
|
|
|
+ _this._configureCamera(_this._configuration.camera || {}, model);
|
|
|
}
|
|
|
return _this._initEnvironment(model);
|
|
|
}).then(function () {
|