|
@@ -3706,9 +3706,6 @@
|
|
|
this._gamepadManager._checkGamepadsStatus();
|
|
|
}
|
|
|
|
|
|
- // Before render
|
|
|
- this.onBeforeRenderObservable.notifyObservers(this);
|
|
|
-
|
|
|
// Update Cameras
|
|
|
if (this.activeCameras.length > 0) {
|
|
|
for (var cameraIndex = 0; cameraIndex < this.activeCameras.length; cameraIndex++) {
|
|
@@ -3731,6 +3728,9 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // Before render
|
|
|
+ this.onBeforeRenderObservable.notifyObservers(this);
|
|
|
+
|
|
|
// Customs render targets
|
|
|
this.OnBeforeRenderTargetsRenderObservable.notifyObservers(this);
|
|
|
var engine = this.getEngine();
|