SimpleModelSetModel
function · ui · orchestration
- Address
0x76cd30· 144 bytes, up to0x76cdbf- 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
- CM2Model::AddRef models
- HandleClose2 models
- CM2Model::SetLoadedCallback models
- CM2Model::SetAlpha models
- CM2Model::SetDoneCallback models
- CM2Model::SetLightingCallback models
- CSimpleFrame::NotifyLayerChanged ui
Calls and jumps by a bare address, from tables/calls.tsv.