浏览代码

Merge pull request #4414 from RaananW/fix-#4412

[Viewer] using the previously set value for enableBlending
David Catuhe 7 年之前
父节点
当前提交
eb99ce5bb4
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2 1
      Viewer/src/model/viewerModel.ts
  2. 1 0
      dist/preview release/what's new.md

+ 2 - 1
Viewer/src/model/viewerModel.ts

@@ -280,9 +280,10 @@ export class ViewerModel implements IDisposable {
      */
     private _enterScene(completeCallback?: () => void): void {
         const scene = this.rootMesh.getScene();
+        let previousValue = scene.animationPropertiesOverride!.enableBlending;
         let callback = () => {
             this.state = ModelState.ENTRYDONE;
-            scene.animationPropertiesOverride!.enableBlending = true;
+            scene.animationPropertiesOverride!.enableBlending = previousValue;
             this._checkCompleteState();
             if (completeCallback) completeCallback();
         }

+ 1 - 0
dist/preview release/what's new.md

@@ -68,6 +68,7 @@
 - Ground material didn't take the default main color is no material definition was provided ([RaananW](https://github.com/RaananW))
 - Model configuration was not extended correctly if loaded more than one model ([RaananW](https://github.com/RaananW))
 - It wasn't possible to disable camera behavior(s) using configuration  [#4348](https://github.com/BabylonJS/Babylon.js/issues/4348) ([RaananW](https://github.com/RaananW))
+- Animation blending was always set to true, ignoring configuration [#4412](https://github.com/BabylonJS/Babylon.js/issues/4412) ([RaananW](https://github.com/RaananW))
 
 ## Breaking changes