summaryrefslogtreecommitdiff
path: root/indra/newview/gltf
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2024-06-07 09:51:32 -0500
committerGitHub <noreply@github.com>2024-06-07 09:51:32 -0500
commit33ddedd6b557ed9130dd8cd3b8327a697614a3ac (patch)
tree6c4ad8ce0e9bbaa1b7f5838470cd15a415210e87 /indra/newview/gltf
parent40197e89491af5a34c5ba11cdeeeacbee9fccf4f (diff)
#1638 Add permissions checks to GLTF Save As and Upload buttons (#1653)
Diffstat (limited to 'indra/newview/gltf')
-rw-r--r--indra/newview/gltf/asset.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/gltf/asset.h b/indra/newview/gltf/asset.h
index 022fc484c2..fd7ea17f05 100644
--- a/indra/newview/gltf/asset.h
+++ b/indra/newview/gltf/asset.h
@@ -368,6 +368,10 @@ namespace LL
// remove the bufferview at the given index
// updates all bufferview indices in this Asset as needed
void eraseBufferView(S32 bufferView);
+
+ // return true if this Asset has been loaded as a local preview
+ // Local previews may be uploaded or exported to disk
+ bool isLocalPreview() { return !mFilename.empty(); }
};
Material::AlphaMode gltf_alpha_mode_to_enum(const std::string& alpha_mode);