We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d61d696 commit fb1e2a9Copy full SHA for fb1e2a9
indra/newview/llvovolume.cpp
@@ -3783,7 +3783,12 @@ bool LLVOVolume::canBeAnimatedObject() const
3783
3784
bool LLVOVolume::isAnimatedObject() const
3785
{
3786
- LLVOVolume *root_vol = (LLVOVolume*)getRootEdit();
+ LLViewerObject *root_obj = getRootEdit();
3787
+ if (root_obj->getPCode() != LL_PCODE_VOLUME)
3788
+ {
3789
+ return false; // at the moment only volumes can be animated
3790
+ }
3791
+ LLVOVolume* root_vol = (LLVOVolume*)root_obj;
3792
mIsAnimatedObject = root_vol->getExtendedMeshFlags() & LLExtendedMeshParams::ANIMATED_MESH_ENABLED_FLAG;
3793
return mIsAnimatedObject;
3794
}
0 commit comments