MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnNolod

Method OnNolod

editor/WorldObjectsGenericDialog.cpp:1518–1535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1516}
1517
1518void CWorldObjectsGenericDialog::OnNolod() {
1519 // TODO: Add your control notification handler code here
1520 if (m_lod == 0) {
1521 MessageBox("You must have a hi-res model.");
1522 return;
1523 }
1524
1525 else if (m_lod == 1) {
1526 FreePolyModel(Object_info[m_current].med_render_handle);
1527 Object_info[m_current].med_render_handle = -1;
1528
1529 } else {
1530 FreePolyModel(Object_info[m_current].lo_render_handle);
1531 Object_info[m_current].lo_render_handle = -1;
1532 }
1533
1534 UpdateDialog();
1535}
1536
1537void CWorldObjectsGenericDialog::OnHiresRadio() {
1538 m_lod = 0;

Callers

nothing calls this directly

Calls 1

FreePolyModelFunction · 0.85

Tested by

no test coverage detected