From 33ddedd6b557ed9130dd8cd3b8327a697614a3ac Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Fri, 7 Jun 2024 09:51:32 -0500 Subject: #1638 Add permissions checks to GLTF Save As and Upload buttons (#1653) --- indra/newview/gltf/asset.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra/newview/gltf') 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); -- cgit v1.2.3