avoid doing unnecessary heavy things on change physics rep

melanie
UbitUmarov 2016-11-26 03:29:22 +00:00
parent 017069636a
commit e60366ce92
1 changed files with 7 additions and 0 deletions

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;