src/Screens/ModelEditorScreen.cpp
// draw all user-enabled 3D model viewers
draw all user-enabled 3D model viewers
draw all user - enabled 3D model viewers
void draw3DViewers(ModelEditorScreen::Impl& impl) {
        for (size_t i = 0; i < impl.st->viewers.size(); ++i) {
            auto& maybe3DViewer = impl.st->viewers[i];
            if (!maybe3DViewer) {
                continue;
            }
            UiModelViewer& viewer = *maybe3DViewer;
            char buf[64];
            std::snprintf(buf, sizeof(buf), "viewer%zu", i);
            bool isOpen = draw3DViewer(impl, viewer, buf);
            if (!isOpen) {
                maybe3DViewer.reset();
            }
        }
    }
void draw3DViewers ( ModelEditorScreen :: Impl & impl ) { for ( size_t i = 0 ; i < impl . st -> viewers . size ( ) ; ++ i ) { auto & maybe3DViewer = impl . st -> viewers [ i ] ; if ( ! maybe3DViewer ) { continue ; } UiModelViewer & viewer = * maybe3DViewer ; char buf [ 64 ] ; std :: snprintf ( buf , sizeof ( buf ) , " " , i ) ; bool isOpen = draw3DViewer ( impl , viewer , buf ) ; if ( ! isOpen ) { maybe3DViewer . reset ( ) ; } } }
draw all user-enabled 3D model viewers
draw all user - enabled 3D model viewers