Skip to content

A unit's parts flagged 0x08 leave the mouse pick too - #3036

Merged
samwhosung merged 2 commits into
mainfrom
sess/unit-pick-flag
Nov 20, 2026
Merged

samwhosung merged 2 commits into
mainfrom
sess/unit-pick-flag

Conversation

@samwhosung

Copy link
Copy Markdown
Owner

The scene ray skips a texture unit whose flags byte has bit 0x08 before testing its triangles (test cl,0x8 at 0x70902f), and #3032 brought that rule to GameObjects and doodads. A unit's skinned parts go through the posed pick instead, which still tested them, so a totem's flagged glow units (Healing 9 of 12, Air and the elementals 6 of 7) and the Goblin model's flagged unit took clicks the reference never gives them.

posed_parts now drops a part whose PickMesh is out of the hit test, for the body, what it wears and its mount alike. Test: of a unit's plain and flagged parts, only the plain one reaches the posed pick.

Fixes #3031

🤖 Generated with Claude Code

@samwhosung
samwhosung merged commit 58fabe6 into main Nov 20, 2026
1 check passed
@samwhosung
samwhosung deleted the sess/unit-pick-flag branch November 20, 2026 09:06
ornfelt added a commit to ornfelt/benilla that referenced this pull request Nov 20, 2026
Upstream: https://github.com/samwhosung/benilla

Upstream changes:
- Mouse pick skips texture units flagged 0x08 (samwhosung#3032, the fork's own 11a21a6 upstreamed), and a unit's skinned parts flagged 0x08 leave the posed pick too (samwhosung#3036)
- Script calls keep the host's SystemState between exclusive entries (samwhosung#3026)
- Chat: held lines kept in a BTreeMap, so a release pass no longer shifts them (samwhosung#3025)
- Sound tests join the tap writers and wait on the decode ring instead of sleeping (samwhosung#3037)
- Timing tests hold on a loaded machine (samwhosung#3035)

Conflicts resolved:
- crates/benilla-world/src/interact/pick.rs: the same 0x08 pick change on both sides, differing only in rustfmt layout of one assert; took upstream's, so the file matches upstream
ornfelt added a commit to ornfelt/benilla that referenced this pull request Nov 20, 2026
…ung#3032, samwhosung#3035, samwhosung#3036, samwhosung#3037 and the fork's merge) - no conflicts, nothing adapted: the branch's difference from main is byte-identical before and after (feature-off path still equals main), no gfx trigger (pick, hover, chat feed, script-call state cache, timing and sound tests); cargo check --workspace --all-targets with and without gfx clean, benilla-world pick and terrain_stream, benilla-formats m2_no_hit_test and m2_billboard_card_face and benilla-app hover, chat feed, sound, frame_step, server_alert, cvars, attach and script_calls tests with gfx green at dev-fast (script_calls' eight_nested_switches_fit_a_two_megabyte_stack overflows its 2 MB thread at dev-fast's opt-level 0, with and without gfx, and passes at dev with gfx), built on Windows only
ornfelt added a commit to ornfelt/benilla that referenced this pull request Nov 20, 2026
…ung#3032, samwhosung#3035, samwhosung#3036, samwhosung#3037 and the fork's merge) - one conflict, in the branch's gfx-only stall test (frame_step_tests.rs): upstream's 8 + 2 frames measured from `since` are taken on the branch's plain `app.update()` frame, the comment naming gfx's frame-start stamp; no gfx trigger (pick, hover, chat feed, script-call state cache, timing and sound tests), no schedule change (frame test green); cargo check --workspace --all-targets clean, benilla-world pick and terrain_stream, benilla-formats m2_no_hit_test and benilla-app frame, frame_step, hover, chat feed, sound, server_alert, cvars, attach and script_calls tests green at dev-fast (script_calls' eight_nested_switches_fit_a_two_megabyte_stack overflows its 2 MB thread at dev-fast's opt-level 0 on main's code too and passes at dev on gfx-dll-backend), built on Windows only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The mouse pick tests texture units with flag 0x8, which 1.12.1 skips

1 participant