فهرست منبع

Fix camera parenting issue

David Catuhe 7 سال پیش
والد
کامیت
d0e4341056

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 17222 - 17222
Playground/babylon.d.txt


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 14997 - 14997
dist/preview release/babylon.d.ts


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 3 - 3
dist/preview release/babylon.js


+ 2 - 0
dist/preview release/babylon.max.js

@@ -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);

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 3 - 3
dist/preview release/babylon.worker.js


+ 2 - 0
dist/preview release/es6.js

@@ -19695,6 +19695,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) {
@@ -20451,6 +20452,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);

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 7 - 7
dist/preview release/viewer/babylon.viewer.js


+ 2 - 0
dist/preview release/viewer/babylon.viewer.max.js

@@ -19816,6 +19816,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) {
@@ -20572,6 +20573,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);

+ 1 - 0
src/Cameras/babylon.camera.ts

@@ -458,6 +458,7 @@
             this.updateCache();
             this._computedViewMatrix = this._getViewMatrix();
             this._currentRenderId = this.getScene().getRenderId();
+            this._childRenderId = this._currentRenderId;
 
             this._refreshFrustumPlanes = true;
 

+ 1 - 0
src/Lights/babylon.light.ts

@@ -432,6 +432,7 @@ module BABYLON {
          */
         public getWorldMatrix(): Matrix {
             this._currentRenderId = this.getScene().getRenderId();
+            this._childRenderId = this._currentRenderId;
 
             var worldMatrix = this._getWorldMatrix();