|
@@ -507,6 +507,11 @@ var Viewport = function ( editor ) {
|
|
|
|
|
|
signals.windowResize.add( function () {
|
|
|
|
|
|
+ // TODO: Move this out?
|
|
|
+
|
|
|
+ editor.DEFAULT_CAMERA.aspect = container.dom.offsetWidth / container.dom.offsetHeight;
|
|
|
+ editor.DEFAULT_CAMERA.updateProjectionMatrix();
|
|
|
+
|
|
|
camera.aspect = container.dom.offsetWidth / container.dom.offsetHeight;
|
|
|
camera.updateProjectionMatrix();
|
|
|
|