mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 10:41:15 +00:00
const
This commit is contained in:
parent
b2b588bee8
commit
c4ca8eaa3e
@ -829,10 +829,10 @@ void LegoOmni::DeleteObject(MxDSAction& p_dsAction)
|
|||||||
LegoROI* LegoOmni::FindROI(const char* p_name)
|
LegoROI* LegoOmni::FindROI(const char* p_name)
|
||||||
{
|
{
|
||||||
ViewManager* viewManager = GetVideoManager()->Get3DManager()->GetLego3DView()->GetViewManager();
|
ViewManager* viewManager = GetVideoManager()->Get3DManager()->GetLego3DView()->GetViewManager();
|
||||||
CompoundObject& rois = viewManager->GetROIs();
|
const CompoundObject& rois = viewManager->GetROIs();
|
||||||
|
|
||||||
if (p_name != NULL && *p_name != '\0' && rois.size() > 0) {
|
if (p_name != NULL && *p_name != '\0' && rois.size() > 0) {
|
||||||
for (CompoundObject::iterator it = rois.begin(); it != rois.end(); it++) {
|
for (CompoundObject::const_iterator it = rois.begin(); it != rois.end(); it++) {
|
||||||
LegoROI* roi = (LegoROI*) *it;
|
LegoROI* roi = (LegoROI*) *it;
|
||||||
const char* name = roi->GetName();
|
const char* name = roi->GetName();
|
||||||
|
|
||||||
|
|||||||
@ -218,7 +218,7 @@ void LegoAnimPresenter::FUN_100695c0()
|
|||||||
m_unk0x70 = new LegoROIList();
|
m_unk0x70 = new LegoROIList();
|
||||||
|
|
||||||
if (m_unk0x70) {
|
if (m_unk0x70) {
|
||||||
CompoundObject& rois = VideoManager()->Get3DManager()->GetLego3DView()->GetViewManager()->GetROIs();
|
const CompoundObject& rois = VideoManager()->Get3DManager()->GetLego3DView()->GetViewManager()->GetROIs();
|
||||||
LegoU32 numActors = m_anim->GetNumActors();
|
LegoU32 numActors = m_anim->GetNumActors();
|
||||||
|
|
||||||
for (LegoU32 i = 0; i < numActors; i++) {
|
for (LegoU32 i = 0; i < numActors; i++) {
|
||||||
|
|||||||
@ -31,7 +31,7 @@ class ViewManager {
|
|||||||
// SYNTHETIC: LEGO1 0x100a6000
|
// SYNTHETIC: LEGO1 0x100a6000
|
||||||
// ViewManager::`scalar deleting destructor'
|
// ViewManager::`scalar deleting destructor'
|
||||||
|
|
||||||
inline CompoundObject& GetROIs() { return rois; }
|
inline const CompoundObject& GetROIs() { return rois; }
|
||||||
|
|
||||||
inline void Add(ViewROI* p_roi) { rois.push_back(p_roi); }
|
inline void Add(ViewROI* p_roi) { rois.push_back(p_roi); }
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user