From 58c4964e736fe0c2cc0b3a6616823b125352c262 Mon Sep 17 00:00:00 2001 From: HifiExperiments Date: Mon, 7 Apr 2025 22:30:25 -0700 Subject: [PATCH] fix samplers from gltf not copying --- libraries/graphics/src/graphics/Material.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/graphics/src/graphics/Material.cpp b/libraries/graphics/src/graphics/Material.cpp index 2624c06964..65fe222f68 100644 --- a/libraries/graphics/src/graphics/Material.cpp +++ b/libraries/graphics/src/graphics/Material.cpp @@ -86,6 +86,7 @@ Material::Material(const Material& material) : _materialParams(material._materialParams), _cullFaceMode(material._cullFaceMode), _textureMaps(material._textureMaps), + _samplers(material._samplers), _defaultFallthrough(material._defaultFallthrough), _propertyFallthroughs(material._propertyFallthroughs) { @@ -109,6 +110,7 @@ Material& Material::operator=(const Material& material) { _materialParams = material._materialParams; _cullFaceMode = material._cullFaceMode; _textureMaps = material._textureMaps; + _samplers = material._samplers; _defaultFallthrough = material._defaultFallthrough; _propertyFallthroughs = material._propertyFallthroughs;