add PhysX SDK and some tweaks

This commit is contained in:
2025-12-17 12:39:20 +08:00
parent 57ca6c30f5
commit 00d3993a77
26 changed files with 1594 additions and 132 deletions

View File

@ -182,6 +182,7 @@ namespace Prism
void EditorLayer::OnDetach()
{
m_EditorScene->OnShutdown();
}
void EditorLayer::OnUpdate(const TimeStep deltaTime)
@ -953,7 +954,12 @@ namespace Prism
SelectedSubmesh selection;
if (entity.HasComponent<MeshComponent>())
{
selection.Mesh = &entity.GetComponent<MeshComponent>().Mesh->GetSubmeshes()[0];
auto& meshComp = entity.GetComponent<MeshComponent>();
if (meshComp.Mesh)
{
selection.Mesh = &meshComp.Mesh->GetSubmeshes()[0];
}
}
selection.Entity = entity;
m_SelectionContext.clear();