Merge remote-tracking branch 'origin/master' into Networking
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||||
|
<Entity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd" xmlns:c="components">
|
||||||
|
<Components>
|
||||||
|
<c:Transform/>
|
||||||
|
</Components>
|
||||||
|
</Entity>
|
||||||
@@ -615,8 +615,8 @@ bool EditorSystem::createEntityNode(World* world, EntityID entity)
|
|||||||
|
|
||||||
if (ImGui::BeginPopupContextItem("item context menu")) {
|
if (ImGui::BeginPopupContextItem("item context menu")) {
|
||||||
if (ImGui::Button("Add")) {
|
if (ImGui::Button("Add")) {
|
||||||
EntityID entity = world->CreateEntity(entity);
|
EntityID newEntity = world->CreateEntity(entity);
|
||||||
world->AttachComponent(entity, "Transform");
|
world->AttachComponent(newEntity, "Transform");
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if (ImGui::Button("Delete")) {
|
if (ImGui::Button("Delete")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user