benilla-re systems structs docs

SimpleModelSetModel

function · ui · orchestration

Address
0x76cd30 · 144 bytes, up to 0x76cdbf
Signature
void __thiscall (void *this, CM2Model *model)
Meaning
Stores a model frame's scene model at +0x318 and installs its callbacks
Confidence
verified, proof one
Finding
ui/modelview#stale-camera-after-setmodel
Test
ui::glue_76cd30_byte_to_unit

Finding: Stale camera after SetModel in ui: Model frames, camera and paint

A second SetModel leaves the frame's camera as it was. The new model is drawn through the old model's camera, frozen at the eye and target published on the old model's last paint, until SetCamera is called. The pending index is not re-armed, so the model-ready hook skips the camera lookup. ClearModel leaves the camera too.

The derivation is in the doc.

Callers 1

Callees 7

Calls and jumps by a bare address, from tables/calls.tsv.