avoid doing unnecessary heavy things on change physics rep

This commit is contained in:
UbitUmarov
2016-11-26 03:29:22 +00:00
parent 017069636a
commit e60366ce92

View File

@@ -2969,6 +2969,13 @@ namespace OpenSim.Region.PhysicsModule.ubOde
private void changePhysRepData(ODEPhysRepData repData)
{
if(_size == repData.size &&
_pbs == repData.pbs &&
m_shapetype == repData.shapetype &&
m_mesh == repData.mesh &&
primVolume == repData.volume)
return;
CheckDelaySelect();
OdePrim parent = (OdePrim)_parent;