src/OpenSimBindings/UiModel.cpp
// declare the death of a component pointer
//
// this happens when we know that OpenSim has destructed a component in
// the model indirectly (e.g. it was destructed by an OpenSim container)
// and that we want to ensure the pointer isn't still held by this state
declare the death of a component pointer
this happens when we know that OpenSim has destructed a component in
the model indirectly
and that we want to ensure the pointer isn't still held by this state
declare the death of a component pointer this happens when we know that OpenSim has destructed a component in the model indirectly and that we want to ensure the pointer isn ' t still held by this state
void osc::UiModel::declareDeathOf(OpenSim::Component const* c) noexcept {
    if (getSelected() == c) {
        setSelected(nullptr);
    }
    if (getHovered() == c) {
        setHovered(nullptr);
    }
    if (getIsolated() == c) {
        setIsolated(nullptr);
    }
}
void osc :: UiModel :: declareDeathOf ( OpenSim :: Component const * c ) noexcept { if ( getSelected ( ) == c ) { setSelected ( nullptr ) ; } if ( getHovered ( ) == c ) { setHovered ( nullptr ) ; } if ( getIsolated ( ) == c ) { setIsolated ( nullptr ) ; } }
declare the death of a component pointer
this happens when we know that OpenSim has destructed a component in
the model indirectly (e.g.
declare the death of a component pointer this happens when we know that OpenSim has destructed a component in the model indirectly ( e . g .