Match Blender duplicate suffixes only at the end of asset names

Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
Rudy Celekli
2026-10-01 21:42:36 -04:00
parent d3f71c4bb8
commit 092c60a7e6
@@ -132,10 +132,12 @@ class PIPELINE_OT_export_selected(bpy.types.Operator):
### Naming Audit Report
```python
import re
def build_naming_report(objects):
report = {"ok": [], "problems": []}
for obj in objects:
if "." in obj.name and obj.name[-3:].isdigit():
if re.search(r"\.[0-9]{3,}$", obj.name):
report["problems"].append(f"{obj.name}: Blender duplicate suffix detected")
elif " " in obj.name:
report["problems"].append(f"{obj.name}: spaces in name")