Some transform update fixes.

Thanks to MartinRJ and Henri for updateXform poking.
This commit is contained in:
Siana Gearz
2013-02-17 15:23:25 +01:00
parent dc3f91b121
commit ef4c7d9433
2 changed files with 18 additions and 10 deletions

View File

@@ -557,6 +557,12 @@ F32 LLDrawable::updateXform(BOOL undamped)
mVObjp->dirtySpatialGroup();
}
}
else if (!isRoot() && (
dist_vec_squared(old_pos, target_pos) > 0.f
|| old_rot != target_rot ))
{ //fix for BUG-860, MAINT-2275, MAINT-1742, MAINT-2247
gPipeline.markRebuild(this, LLDrawable::REBUILD_POSITION, TRUE);
}
else if (!getVOVolume() && !isAvatar())
{
movePartition();