Fix crash when PhysicsMaterial asset is reloaded in editor
This commit is contained in:
@@ -81,7 +81,7 @@ void PhysicsSettings::Deserialize(DeserializeStream& stream, ISerializeModifier*
|
||||
PhysicalMaterial::~PhysicalMaterial()
|
||||
{
|
||||
if (_material)
|
||||
PhysicsBackend::DestroyObject(_material);
|
||||
PhysicsBackend::DestroyMaterial(_material);
|
||||
}
|
||||
|
||||
bool PhysicsService::Init()
|
||||
|
||||
Reference in New Issue
Block a user