add PhysX SDK and some tweaks
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user