소스 검색

Deselect entities that are removed

tags/v0.1.0
Fen Dweller 6 년 전
부모
커밋
76e8b54f14
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      macrovision.js

+ 5
- 0
macrovision.js 파일 보기

@@ -608,10 +608,15 @@ function removeAllEntities() {
}

function removeEntity(element) {
if (selected == element) {
deselect();
}
delete entities[element.dataset.key];
const bottomName = document.querySelector("#bottom-name-" + element.dataset.key);
bottomName.parentElement.removeChild(bottomName);
element.parentElement.removeChild(element);


}
function displayEntity(entity, view, x, y) {
const box = document.createElement("div");


불러오는 중...
취소
저장