Crash at LLVOVolume::isAnimatedObject
parent
2df00437d1
commit
03fa606cfd
|
|
@ -3783,7 +3783,12 @@ bool LLVOVolume::canBeAnimatedObject() const
|
|||
|
||||
bool LLVOVolume::isAnimatedObject() const
|
||||
{
|
||||
LLVOVolume *root_vol = (LLVOVolume*)getRootEdit();
|
||||
LLViewerObject *root_obj = getRootEdit();
|
||||
if (root_obj->getPCode() != LL_PCODE_VOLUME)
|
||||
{
|
||||
return false; // at the moment only volumes can be animated
|
||||
}
|
||||
LLVOVolume* root_vol = (LLVOVolume*)root_obj;
|
||||
mIsAnimatedObject = root_vol->getExtendedMeshFlags() & LLExtendedMeshParams::ANIMATED_MESH_ENABLED_FLAG;
|
||||
return mIsAnimatedObject;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue