Merge branch 'development' into cmake/warn_virtual
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com> # Conflicts: # Code/Editor/Viewport.h
This commit is contained in:
@@ -378,6 +378,7 @@ namespace AzToolsFramework
|
||||
->Event("CreateNewEntityAtPosition", &ToolsApplicationRequests::CreateNewEntityAtPosition)
|
||||
->Event("GetCurrentLevelEntityId", &ToolsApplicationRequests::GetCurrentLevelEntityId)
|
||||
->Event("GetExistingEntity", &ToolsApplicationRequests::GetExistingEntity)
|
||||
->Event("EntityExists", &ToolsApplicationRequests::EntityExists)
|
||||
->Event("DeleteEntityById", &ToolsApplicationRequests::DeleteEntityById)
|
||||
->Event("DeleteEntities", &ToolsApplicationRequests::DeleteEntities)
|
||||
->Event("DeleteEntityAndAllDescendants", &ToolsApplicationRequests::DeleteEntityAndAllDescendants)
|
||||
@@ -783,6 +784,11 @@ namespace AzToolsFramework
|
||||
return AZ::EntityId{id};
|
||||
}
|
||||
|
||||
bool ToolsApplication::EntityExists(AZ::EntityId id)
|
||||
{
|
||||
return FindEntity(id) != nullptr;
|
||||
}
|
||||
|
||||
void ToolsApplication::DeleteSelected()
|
||||
{
|
||||
if (IsPrefabSystemEnabled())
|
||||
|
||||
@@ -115,6 +115,7 @@ namespace AzToolsFramework
|
||||
AZ::EntityId CreateNewEntity(AZ::EntityId parentId = AZ::EntityId()) override;
|
||||
AZ::EntityId CreateNewEntityAtPosition(const AZ::Vector3& pos, AZ::EntityId parentId = AZ::EntityId()) override;
|
||||
AZ::EntityId GetExistingEntity(AZ::u64 id) override;
|
||||
bool EntityExists(AZ::EntityId id) override;
|
||||
void DeleteSelected() override;
|
||||
void DeleteEntityById(AZ::EntityId entityId) override;
|
||||
void DeleteEntities(const EntityIdList& entities) override;
|
||||
|
||||
Reference in New Issue
Block a user