From ba6ceebbf2569c3ad7c6636b691c721d159fb7de Mon Sep 17 00:00:00 2001 From: myuce Date: Mon, 5 Apr 2021 13:49:07 +0300 Subject: [PATCH] Hide materials used by models in Radiant --- modules/AssetExporter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/AssetExporter.py b/modules/AssetExporter.py index fdf497b..ecf2690 100644 --- a/modules/AssetExporter.py +++ b/modules/AssetExporter.py @@ -411,7 +411,11 @@ def createMaterialGdtBo3(vmts: dict): data["colorMap"] = "i_" + uniqueName(mat["$basetexture"].strip()) else: data["colorMap"] = "404.tif" - data["usage"] = "tools" # probably not a good idea + + if shader == "vertexlitgeneric" or shader == "vertexunlitgeneric": + data["usage"] = "" + else: + data["usage"] = "tools" # probably not a good idea if "$bumpmap" in mat and "$ssbump" not in mat: data["normalMap"] = "i_" + uniqueName(mat["$bumpmap"].strip())