|
@@ -15709,6 +15709,7 @@ var BABYLON;
|
|
/** @ignore */
|
|
/** @ignore */
|
|
this._currentRenderId = -1;
|
|
this._currentRenderId = -1;
|
|
this._parentRenderId = -1;
|
|
this._parentRenderId = -1;
|
|
|
|
+ this._childRenderId = -1;
|
|
this._animationPropertiesOverride = null;
|
|
this._animationPropertiesOverride = null;
|
|
/**
|
|
/**
|
|
* An event triggered when the mesh is disposed
|
|
* An event triggered when the mesh is disposed
|
|
@@ -15912,7 +15913,7 @@ var BABYLON;
|
|
/** @ignore */
|
|
/** @ignore */
|
|
Node.prototype._markSyncedWithParent = function () {
|
|
Node.prototype._markSyncedWithParent = function () {
|
|
if (this.parent) {
|
|
if (this.parent) {
|
|
- this._parentRenderId = this.parent._currentRenderId;
|
|
|
|
|
|
+ this._parentRenderId = this.parent._childRenderId;
|
|
}
|
|
}
|
|
};
|
|
};
|
|
/** @ignore */
|
|
/** @ignore */
|
|
@@ -15920,7 +15921,7 @@ var BABYLON;
|
|
if (!this.parent) {
|
|
if (!this.parent) {
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
- if (this._parentRenderId !== this.parent._currentRenderId) {
|
|
|
|
|
|
+ if (this._parentRenderId !== this.parent._childRenderId) {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
return this.parent.isSynchronized();
|
|
return this.parent.isSynchronized();
|
|
@@ -17228,6 +17229,7 @@ var BABYLON;
|
|
return this._worldMatrix;
|
|
return this._worldMatrix;
|
|
}
|
|
}
|
|
if (!force && this.isSynchronized(true)) {
|
|
if (!force && this.isSynchronized(true)) {
|
|
|
|
+ this._currentRenderId = this.getScene().getRenderId();
|
|
return this._worldMatrix;
|
|
return this._worldMatrix;
|
|
}
|
|
}
|
|
this._cache.position.copyFrom(this.position);
|
|
this._cache.position.copyFrom(this.position);
|
|
@@ -17235,6 +17237,7 @@ var BABYLON;
|
|
this._cache.pivotMatrixUpdated = false;
|
|
this._cache.pivotMatrixUpdated = false;
|
|
this._cache.billboardMode = this.billboardMode;
|
|
this._cache.billboardMode = this.billboardMode;
|
|
this._currentRenderId = this.getScene().getRenderId();
|
|
this._currentRenderId = this.getScene().getRenderId();
|
|
|
|
+ this._childRenderId = this.getScene().getRenderId();
|
|
this._isDirty = false;
|
|
this._isDirty = false;
|
|
// Scaling
|
|
// Scaling
|
|
BABYLON.Matrix.ScalingToRef(this.scaling.x * this.scalingDeterminant, this.scaling.y * this.scalingDeterminant, this.scaling.z * this.scalingDeterminant, BABYLON.Tmp.Matrix[1]);
|
|
BABYLON.Matrix.ScalingToRef(this.scaling.x * this.scalingDeterminant, this.scaling.y * this.scalingDeterminant, this.scaling.z * this.scalingDeterminant, BABYLON.Tmp.Matrix[1]);
|