Merge branch 'master' of https://github.com/singularity-viewer/SingularityViewer.git
# Conflicts: # indra/llmath/lloctree.h # indra/newview/llsurface.cpp
This commit is contained in:
@@ -265,6 +265,11 @@ LLVOVolume::~LLVOVolume()
|
||||
}
|
||||
}
|
||||
|
||||
LLVOVolume* LLVOVolume::asVolume()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
void LLVOVolume::markDead()
|
||||
{
|
||||
if (!mDead)
|
||||
@@ -3494,8 +3499,6 @@ bool LLVOVolume::isAnimatedObject() const
|
||||
// virtual
|
||||
void LLVOVolume::onReparent(LLViewerObject *old_parent, LLViewerObject *new_parent)
|
||||
{
|
||||
LLVOVolume *old_volp = dynamic_cast<LLVOVolume*>(old_parent);
|
||||
|
||||
if (new_parent && !new_parent->isAvatar())
|
||||
{
|
||||
if (mControlAvatar.notNull())
|
||||
@@ -3507,6 +3510,7 @@ void LLVOVolume::onReparent(LLViewerObject *old_parent, LLViewerObject *new_pare
|
||||
av->markForDeath();
|
||||
}
|
||||
}
|
||||
LLVOVolume *old_volp = old_parent ? old_parent->asVolume() : nullptr;
|
||||
if (old_volp && old_volp->isAnimatedObject())
|
||||
{
|
||||
if (old_volp->getControlAvatar())
|
||||
@@ -5245,7 +5249,7 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group)
|
||||
if (bridge)
|
||||
{
|
||||
vobj = bridge->mDrawable->getVObj();
|
||||
vol_obj = dynamic_cast<LLVOVolume*>(vobj);
|
||||
vol_obj = vobj ? vobj->asVolume() : nullptr;
|
||||
}
|
||||
if (vol_obj)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user