Skip to content

Fix: самостоятельная нормализация UV0 winding в Repack (фикс пропуска Weld) - #180

Closed
SashaRX wants to merge 1 commit into
mainfrom
codex/propose-fix-for-uv-normalization-issue
Closed

Fix: самостоятельная нормализация UV0 winding в Repack (фикс пропуска Weld)#180
SashaRX wants to merge 1 commit into
mainfrom
codex/propose-fix-for-uv-normalization-issue

Conversation

@SashaRX

@SashaRX SashaRX commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Закрыть регрессию, когда RepackSingle/RepackMulti и Repack All могли выполняться без предварительного обязательного этапа Weld, что оставляло mirrored UV0-shells ненормализованными и приводило к некорректному/зеркальному UV2.

Description

  • В Editor/XatlasRepack.cs добавлена явная нормализация winding перед упаковкой: NormalizeShellWinding вызывается внутри RepackSingle для локальной копии UV0 и для каждой меш-копии в RepackMulti, а не предполагается, что ExecWeldUv0 уже выполнился.
  • Теперь flippedShells заполняется значением, возвращаемым NormalizeShellWinding, вместо фиктивного 0, чтобы отражать реальное число перевёрнутых шелов.
  • Добавлен регрессионный тест RepackSingle_NormalizesMirroredShellWithoutModifyingUv0 в Tests/Editor/XatlasRepackGroupMergeTests.cs, который проверяет, что standalone RepackSingle нормализует зеркальный UV0 (увеличивает flippedShells == 1) и при этом не мутирует исходный mesh.uv.
  • Документировано изменение как эксперимент в Documentation~/EXPERIMENTS.md с описанием мотива и ожиданий.

Testing

  • Выполнены статические проверки репозитория: git diff --check прошёл без предупреждений. (успех)
  • Запущена быстрая проверка баланса фигурных скобок для изменённых C# файлов (скрипт python3 проверил совпадение числа {/}) и не выявил расхождений. (успех)
  • Добавённый EditMode-тест присутствует (RepackSingle_NormalizesMirroredShellWithoutModifyingUv0) и проходит смысловую проверку локально при наличии native-плагина xatlas, но в CI-контейнере Unity Editor / xatlas отсутствуют, поэтому тесты не были выполнены здесь; запуск тестов в Unity необходим для full verification. (не выполнено — Unity отсутствует)

Codex Task

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 39 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 57029001-369c-4337-bc5f-c0132689180f

📥 Commits

Reviewing files that changed from the base of the PR and between 21d382e and 2e73a1d.

📒 Files selected for processing (3)
  • Documentation~/EXPERIMENTS.md
  • Editor/XatlasRepack.cs
  • Tests/Editor/XatlasRepackGroupMergeTests.cs

Comment @coderabbitai help to get the list of available commands.

SashaRX commented Aug 6, 2026

Copy link
Copy Markdown
Owner Author

Фикс вошёл в консолидированную ветку claude/security-pr-analysis-fmpzf0 коммитом 24bb542. Закрыт как superseded.


Generated by Claude Code

@SashaRX SashaRX closed this Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant