From 52257c115507c1c919334f877f5bf9b8695833d5 Mon Sep 17 00:00:00 2001 From: ChenX Date: Wed, 23 Oct 2019 19:24:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AFthreejs=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 312784843..03dba71da 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,4 +1,4 @@ -import { Layers, Object3D } from 'three'; +import { Layers, Object3D, Cache } from 'three'; import { ErrorMonitoring } from './Common/ErrorMonitoring'; import './UI/Css/blue.less'; import './UI/Css/golden.less'; @@ -6,6 +6,8 @@ import './UI/Css/style.less'; import './UI/Css/switchTheme.less'; import { WebCAD } from './UI/Layout/ApplicationLayout'; +Cache.enabled = true; + //禁止用户选中 document.addEventListener("selectionchange", () => {