Build fix

meow-7.2.2
Ansariel 2016-07-13 19:35:27 +02:00
parent 9edc0870d7
commit 67e4c672c7
1 changed files with 9 additions and 2 deletions

View File

@ -99,8 +99,15 @@ bool FSExportPermsCheck::canExportNode(LLSelectNode* node, bool dae)
{
if (dae)
{
LLSD mesh_header = gMeshRepo.getMeshHeader(sculpt_params->getSculptTexture());
exportable = mesh_header["creator"].asUUID() == gAgentID;
const LLSD* mesh_header_ptr = gMeshRepo.getMeshHeader(sculpt_params->getSculptTexture());
if (mesh_header_ptr)
{
exportable = (*mesh_header_ptr)["creator"].asUUID() == gAgentID;
}
else
{
exportable = false;
}
}
else
{