AlchSync: Change dynamic_casts to LLVOVolume to asVolume()

This commit is contained in:
Liru Færs
2020-01-04 23:31:15 -05:00
parent e81affce51
commit 19ad64cc96
12 changed files with 42 additions and 28 deletions

View File

@@ -1383,8 +1383,8 @@ void LLFloaterTools::getMediaState()
for ( ; iter != end; ++iter)
{
LLSelectNode* node = *iter;
LLVOVolume* object = dynamic_cast<LLVOVolume*>(node->getObject());
if (NULL != object)
LLVOVolume* object = node ? node->getObject()->asVolume() : nullptr;
if (nullptr != object)
{
if (!object->permModify())
{