Corrected bug and avoid sending to DB when not necessary
This commit is contained in:
parent
986d221681
commit
d4332f27fb
|
@ -56,6 +56,9 @@ window.onbeforeunload = function() {
|
||||||
init();
|
init();
|
||||||
if (initMainScene !== L3D.initPeach && initMainScene !== L3D.initSponza)
|
if (initMainScene !== L3D.initPeach && initMainScene !== L3D.initSponza)
|
||||||
logfps();
|
logfps();
|
||||||
|
else
|
||||||
|
L3D.BD.disable();
|
||||||
|
|
||||||
animate();
|
animate();
|
||||||
|
|
||||||
function logfps() {
|
function logfps() {
|
||||||
|
@ -231,8 +234,8 @@ function onWindowResize() {
|
||||||
previewer.domElement.height = container_size.height();
|
previewer.domElement.height = container_size.height();
|
||||||
|
|
||||||
renderer.setSize(container_size.width(), container_size.height());
|
renderer.setSize(container_size.width(), container_size.height());
|
||||||
cameras.forEach(function(camera) {camera.aspect = container_size.width() / container_size.height();});
|
cameras.forEach(function(camera) {camera.camera.aspect = container_size.width() / container_size.height();});
|
||||||
cameras.forEach(function(camera) {camera.updateProjectionMatrix();});
|
cameras.forEach(function(camera) {camera.camera.updateProjectionMatrix();});
|
||||||
render();
|
render();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue