瀏覽代碼

Fix attachToBone issue

David Catuhe 7 年之前
父節點
當前提交
cc4ce100b0

文件差異過大導致無法顯示
+ 16955 - 16955
dist/preview release/babylon.d.ts


文件差異過大導致無法顯示
+ 1 - 1
dist/preview release/babylon.js


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

@@ -73287,6 +73287,7 @@ var BABYLON;
         };
         };
         Bone.prototype.markAsDirty = function () {
         Bone.prototype.markAsDirty = function () {
             this._currentRenderId++;
             this._currentRenderId++;
+            this._childRenderId++;
             this._skeleton._markAsDirty();
             this._skeleton._markAsDirty();
         };
         };
         Bone.prototype.copyAnimationRange = function (source, rangeName, frameOffset, rescaleAsRequired, skelDimensionsRatio) {
         Bone.prototype.copyAnimationRange = function (source, rangeName, frameOffset, rescaleAsRequired, skelDimensionsRatio) {

文件差異過大導致無法顯示
+ 1 - 1
dist/preview release/babylon.worker.js


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

@@ -73259,6 +73259,7 @@ var BABYLON;
         };
         };
         Bone.prototype.markAsDirty = function () {
         Bone.prototype.markAsDirty = function () {
             this._currentRenderId++;
             this._currentRenderId++;
+            this._childRenderId++;
             this._skeleton._markAsDirty();
             this._skeleton._markAsDirty();
         };
         };
         Bone.prototype.copyAnimationRange = function (source, rangeName, frameOffset, rescaleAsRequired, skelDimensionsRatio) {
         Bone.prototype.copyAnimationRange = function (source, rangeName, frameOffset, rescaleAsRequired, skelDimensionsRatio) {

文件差異過大導致無法顯示
+ 1 - 1
dist/preview release/viewer/babylon.viewer.js


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

@@ -73375,6 +73375,7 @@ var BABYLON;
         };
         };
         Bone.prototype.markAsDirty = function () {
         Bone.prototype.markAsDirty = function () {
             this._currentRenderId++;
             this._currentRenderId++;
+            this._childRenderId++;
             this._skeleton._markAsDirty();
             this._skeleton._markAsDirty();
         };
         };
         Bone.prototype.copyAnimationRange = function (source, rangeName, frameOffset, rescaleAsRequired, skelDimensionsRatio) {
         Bone.prototype.copyAnimationRange = function (source, rangeName, frameOffset, rescaleAsRequired, skelDimensionsRatio) {

+ 1 - 0
src/Bones/babylon.bone.ts

@@ -189,6 +189,7 @@
 
 
         public markAsDirty(): void {
         public markAsDirty(): void {
             this._currentRenderId++;
             this._currentRenderId++;
+            this._childRenderId++;
             this._skeleton._markAsDirty();
             this._skeleton._markAsDirty();
         }
         }