From c3f94ab9a1da2c0c5304ff624b54fad6a43506ae Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Wed, 2 Nov 2022 12:14:56 -0500 Subject: SL-18520 Use GLTF material.extras to pass flags for enabling overriding alpha mode and double sided to default --- indra/newview/llmaterialeditor.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'indra/newview') diff --git a/indra/newview/llmaterialeditor.cpp b/indra/newview/llmaterialeditor.cpp index 0ae8dcbcf7..004d61a2ec 100644 --- a/indra/newview/llmaterialeditor.cpp +++ b/indra/newview/llmaterialeditor.cpp @@ -2312,7 +2312,13 @@ public: std::string overrides_json = material->asJSON(); - +#if 1 + // debug + std::string err, warn; + LLGLTFMaterial debug; + debug.fromJSON(overrides_json, warn, err); +#endif + LLSD overrides = llsd::map( "object_id", objectp->getID(), "side", te, -- cgit v1.2.3