Browse Source

修复修改应急节点名字无法保存的问题

dev
刘向辉 3 years ago
parent
commit
5fd87f5c10
  1. 3
      src/app/babylon/controller/mode-manager.ts
  2. 3
      src/app/babylon/tool/babylon-tool.ts
  3. 2
      src/app/babylon/view/building-window/building-window.ts
  4. 2
      src/app/babylon/view/mark-window/mark-window.ts
  5. 1
      src/app/service/objects.service.ts
  6. 1
      tsconfig.json

3
src/app/babylon/controller/mode-manager.ts

@ -23,7 +23,7 @@ export class ModeManager {
/**
*
*/
public static s_isMakeMode = false;
public static s_isMakeMode = true;
/**
*
@ -53,6 +53,7 @@ export class ModeManager {
/**
*
*
*/
static get currentMode(): ModeType {
return ModeManager.s_currentMode;

3
src/app/babylon/tool/babylon-tool.ts

@ -10,11 +10,9 @@ import {
ISceneLoaderPluginAsync,
ISceneLoaderProgressEvent,
Mesh,
MeshBuilder,
NodeMaterial,
PBRMaterial,
QuadraticEase,
Quaternion,
Scene,
SceneLoader,
Skeleton,
@ -22,7 +20,6 @@ import {
} from '@babylonjs/core';
import {
AdvancedDynamicTexture,
Button,
Container,
Control,

2
src/app/babylon/view/building-window/building-window.ts

@ -1,5 +1,5 @@
import { AbstractMesh, GizmoManager, Material, Mesh, PBRMaterial, Texture } from "@babylonjs/core";
import { AbstractMesh, Material, Mesh, PBRMaterial, Texture } from "@babylonjs/core";
import { PlanComponent } from "src/app/pages/plan/plan.component";
import { ConfigManager } from "../../controller/config-manager";
import { DataManager } from "../../controller/data-manager";

2
src/app/babylon/view/mark-window/mark-window.ts

@ -248,7 +248,7 @@ export class MarkWindow extends UIBase {
let copyNodeData = classToClass(this.currentMarkNodeDataCopy);//覆盖数据
copyNodeData.id = oldNodeData.id;
copyNodeData.index = oldNodeData.index;
copyNodeData.name = oldNodeData.name;
// copyNodeData.name = oldNodeData.name;
markPlaneData.setNodeData(nodeId, copyNodeData);//覆盖数据
this.saveAllMarkPlanData();

1
src/app/service/objects.service.ts

@ -68,6 +68,7 @@ export class ObjectsService {
*
*/
getBucketName() {
return this.obsRootByEnv.get(ObjectsService.currentEnvironmentType);
}

1
tsconfig.json

@ -33,6 +33,7 @@
},
"include": [
"src/**/*.d.ts",
"src/**/*.ts",
"typings.d.ts"
]
}

Loading…
Cancel
Save