Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def init_mesh_loader():
if settings.use_assimp:
loadPrcFileData("", "load-file-type p3assimp\n"
"assimp-gen-normals #t\n"
"assimp-smooth-normal-angle 90\n")
if sys.version_info[0] >= 3:
gltf.patch_loader(None)
path = cache.create_path_for("models")
loadPrcFileData("", "model-cache-dir %s\n" % path)