Integrating github/staging through commit b0dd7ed
This commit is contained in:
@@ -23,7 +23,7 @@ ly_add_target(
|
||||
Source
|
||||
BUILD_DEPENDENCIES
|
||||
PRIVATE
|
||||
3rdParty::FreeType2
|
||||
3rdParty::freetype
|
||||
AZ::AzCore
|
||||
AZ::AtomCore
|
||||
Legacy::CryCommon
|
||||
|
||||
@@ -290,7 +290,7 @@ namespace AZ
|
||||
|
||||
void MeshComponentController::UnregisterModel()
|
||||
{
|
||||
if (m_meshFeatureProcessor)
|
||||
if (m_meshFeatureProcessor && m_meshHandle.IsValid())
|
||||
{
|
||||
MeshComponentNotificationBus::Event(m_entityId, &MeshComponentNotificationBus::Events::OnModelPreDestroy);
|
||||
m_meshFeatureProcessor->ReleaseMesh(m_meshHandle);
|
||||
|
||||
Reference in New Issue
Block a user