fix entity tree not re-rendering on delete
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good

This commit is contained in:
austin 2024-09-02 18:51:36 -04:00
parent b1612cc943
commit 91490103a4
2 changed files with 3 additions and 0 deletions

View File

@ -666,6 +666,8 @@ Shadowmap pipeline debug menu
Shader storage refactor Shader storage refactor
Unit definition/spawning Unit definition/spawning
Hitbox updates for katana 2H Hitbox updates for katana 2H
Fix bug with geometry references not properly flipping in server hitbox collision callback
Fix level editor entity tree not re-rendering when an entity is deleted
# TODO # TODO

View File

@ -333,6 +333,7 @@ public class MenuGeneratorsLevelEditor {
Button deleteButton = Button.createButton("X", () -> { Button deleteButton = Button.createButton("X", () -> {
LoggerInterface.loggerEngine.INFO("Delete " + entity.getId()); LoggerInterface.loggerEngine.INFO("Delete " + entity.getId());
ServerEntityUtils.destroyEntity(entity); ServerEntityUtils.destroyEntity(entity);
fillInEntityTreeContent(scrollable);
}); });
deleteButton.setMarginRight(5); deleteButton.setMarginRight(5);
deleteButton.setMarginLeft(5); deleteButton.setMarginLeft(5);