|
@@ -19728,6 +19728,7 @@ var BABYLON;
|
|
|
*/
|
|
|
Light.prototype.getWorldMatrix = function () {
|
|
|
this._currentRenderId = this.getScene().getRenderId();
|
|
|
+ this._childRenderId = this._currentRenderId;
|
|
|
var worldMatrix = this._getWorldMatrix();
|
|
|
if (this.parent && this.parent.getWorldMatrix) {
|
|
|
if (!this._parentedWorldMatrix) {
|
|
@@ -20484,6 +20485,7 @@ var BABYLON;
|
|
|
this.updateCache();
|
|
|
this._computedViewMatrix = this._getViewMatrix();
|
|
|
this._currentRenderId = this.getScene().getRenderId();
|
|
|
+ this._childRenderId = this._currentRenderId;
|
|
|
this._refreshFrustumPlanes = true;
|
|
|
if (!this.parent || !this.parent.getWorldMatrix) {
|
|
|
this._globalPosition.copyFrom(this.position);
|