mirror of
https://github.com/msitarzewski/agency-agents.git
synced 2026-10-10 20:55:12 +00:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user