src/UI/PropertyEditors.cpp
// draw a `double` property editor
draw a `double` property editor
draw a ` double ` property editor
static std::optional<AbstractPropertyEditor::Response> draw_editor(
        AbstractPropertyEditor& st,
        OpenSim::SimpleProperty<double> const& prop)
{
    std::optional<AbstractPropertyEditor::Response> rv = std::nullopt;
    if (!prop.isListProperty() && prop.size() == 0)
    {
    }
    else if (!prop.isListProperty() && prop.size() == 1)
    {
        Draw1DoubleValueEditor(st, prop, rv);
    }
    else if (prop.size() == 2)
    {
        Draw2DoubleValueEditor(st, prop, rv);
    }
    else
    {
        ImGui::Text("%s", prop.toString().c_str());
    }
    return rv;
}
static std :: optional < AbstractPropertyEditor :: Response > draw_editor ( AbstractPropertyEditor & st , OpenSim :: SimpleProperty < double > const & prop ) { std :: optional < AbstractPropertyEditor :: Response > rv = std :: nullopt ; if ( ! prop . isListProperty ( ) && prop . size ( ) == 0 ) { } else if ( ! prop . isListProperty ( ) && prop . size ( ) == 1 ) { Draw1DoubleValueEditor ( st , prop , rv ) ; } else if ( prop . size ( ) == 2 ) { Draw2DoubleValueEditor ( st , prop , rv ) ; } else { ImGui :: Text ( " " , prop . toString ( ) . c_str ( ) ) ; } return rv ; }
draw a `double` property editor
draw a ` double ` property editor
// uh