From a4bddb5ab129e1cdfc4e7f2ef904b33115afc855 Mon Sep 17 00:00:00 2001 From: Myway Date: Wed, 22 Apr 2020 18:50:40 +0800 Subject: [PATCH] Forbid terrain property animation (#6595) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复插值计算的错误 * 修复weightmap再rebuild后出的错误 * 禁止地形属性动画 --- cocos/terrain/terrain.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cocos/terrain/terrain.ts b/cocos/terrain/terrain.ts index fb1c38a35f..2864920549 100644 --- a/cocos/terrain/terrain.ts +++ b/cocos/terrain/terrain.ts @@ -587,22 +587,26 @@ export class Terrain extends Component { @property({ type: TerrainAsset, visible: false, + animatable: false, }) protected __asset: TerrainAsset|null = null; @property({ type: TerrainLayer, visible: true, + animatable: false, }) protected _layers: Array = []; @property({ visible: false, + animatable: false, }) protected _blockInfos: TerrainBlockInfo[] = []; @property({ visible: false, + animatable: false, }) protected _lightmapInfos: TerrainBlockLightmapInfo[] = [];