#4080 Fix gltf crash when opening

master
Andrey Kleshchev 2025-05-28 20:54:03 +03:00 committed by Andrey Kleshchev
parent 4c60231c3f
commit 0dbf2b40f6
1 changed files with 6 additions and 0 deletions

View File

@ -158,6 +158,12 @@ namespace LL
dst.load3(src);
}
template<>
inline void copyVec3<F32, LLColor4U>(F32* src, LLColor4U& dst)
{
dst.set((U8)(src[0] * 255.f), (U8)(src[1] * 255.f), (U8)(src[2] * 255.f), 255);
}
template<>
inline void copyVec3<U16, LLColor4U>(U16* src, LLColor4U& dst)
{