"""Synchronize basic glTF PBR properties preserved by UE mesh reimports.""" import json import base64 import re import struct import unreal from .paths import PROJECT def link_textures(source, mesh, destination): if source.suffix.lower() == ".glb": data = source.read_bytes() size, kind = struct.unpack_from("