Small config tweaks, removed cam/light check, code cleanup

This commit is contained in:
Nero Frame 13 committed 2026-10-14 13:49:18 +02:00
1 parent 4617c47ad0
commit b800e5a68b
6 files changed
+148 -43

No files matched your search

+80 -14
View File
@@ -82,16 +82,48 @@ MESH_DATA_MATCHES_OBJECT = True
# Blender default names that must never survive in a published file.
DEFAULT_NAMES = {
"cube", "plane", "sphere", "uvsphere", "icosphere", "cylinder", "cone",
"torus", "circle", "grid", "suzanne", "monkey", "empty", "camera",
"light", "lamp", "point", "sun", "spot", "area", "material", "collection",
"beziercurve", "beziercircle", "nurbscurve", "nurbspath", "text",
"armature", "lattice", "nodegroup", "geometrynodes", "stroke", "gpencil",
"lineart", "scene", "world", "object", "mesh",
"cube",
"plane",
"sphere",
"uvsphere",
"icosphere",
"cylinder",
"cone",
"torus",
"circle",
"grid",
"suzanne",
"monkey",
"empty",
"camera",
"light",
"lamp",
"point",
"sun",
"spot",
"area",
"material",
"collection",
"beziercurve",
"beziercircle",
"nurbscurve",
"nurbspath",
"text",
"armature",
"lattice",
"nodegroup",
"geometrynodes",
"stroke",
"gpencil",
"lineart",
"scene",
"world",
"object",
"mesh",
}
# --------------------------------------------------------------------------- #
# Structure (placeholder, real hierarchy to be defined)
# Structure
# --------------------------------------------------------------------------- #
# Collections that must exist. "{asset}" is replaced by the asset name.
REQUIRED_COLLECTIONS = []
@@ -111,7 +143,10 @@ UV_NEGATIVE_TOLERANCE = 1e-6
# --------------------------------------------------------------------------- #
ALLOWED_MODIFIERS = {"SUBSURF", "MULTIRES"}
ALLOWED_MODIFIERS_LINEART = {
"SUBSURF", "MULTIRES", "LINEART", "GREASE_PENCIL_THICKNESS",
"SUBSURF",
"MULTIRES",
"LINEART",
"GREASE_PENCIL_THICKNESS",
}
# Which transform channels must be applied.
@@ -135,8 +170,19 @@ CHAR_BODY_NAME = "GEO_{asset}_Body"
# Name keywords that identify inner mouth / eye parts (case-insensitive).
CHAR_PART_KEYWORDS = [
"eye", "iris", "pupil", "cornea", "sclera", "lid", "lash",
"mouth", "teeth", "tooth", "tongue", "gum", "palate",
"eye",
"iris",
"pupil",
"cornea",
"sclera",
"lid",
"lash",
"mouth",
"teeth",
"tooth",
"tongue",
"gum",
"palate",
]
# Vertex groups the body mesh must have. TODO: real list.
@@ -152,14 +198,32 @@ SET_COLLECTION_PATTERN = r"^(?:SET|ENV|set|env)[_-]"
VERSION_PATTERN = r"(?<![A-Za-z0-9])v(\d{3,4})(?![0-9])"
# Datablock types scanned for ".001" duplicated names.
DUPLICATE_NAME_TYPES = ["objects", "collections", "cameras", "materials", "actions", "node_groups"]
DUPLICATE_NAME_TYPES = [
"objects",
"collections",
"cameras",
"materials",
"actions",
"node_groups",
]
# --------------------------------------------------------------------------- #
# UI
# --------------------------------------------------------------------------- #
CATEGORY_ORDER = [
"Scene", "File", "Naming", "Structure", "Geometry", "UVs", "Objects",
"Shading", "Animation", "Character", "Lineart", "Shot", "Sound",
"Scene",
"File",
"Naming",
"Structure",
"Geometry",
"UVs",
"Objects",
"Shading",
"Animation",
"Character",
"Lineart",
"Shot",
"Sound",
]
MAX_ISSUES_DRAWN = 30
@@ -175,7 +239,9 @@ def _snapshot():
if _DEFAULTS is None:
module = sys.modules[__name__]
_DEFAULTS = {
k: copy.deepcopy(v) for k, v in vars(module).items() if k.isupper() and not k.startswith("_")
k: copy.deepcopy(v)
for k, v in vars(module).items()
if k.isupper() and not k.startswith("_")
}
return _DEFAULTS