63 std::weak_ptr<STATE> state =
m_state;
67 std::shared_ptr<STATE>
locked = state.lock();
74 [aGeneration, completion = std::move( aCompletion )]( std::uint64_t,
77 PANEL_MODEL_FILE_PREVIEW::RESULT result;
78 result.status = aImported.GetError();
80 const std::string_view diagnostic = aImported.GetDiagnostic();
81 result.message = wxString::FromUTF8( diagnostic.data(), diagnostic.size() );
83 if( result.message.IsEmpty() && !diagnostic.empty() )
84 result.message = wxString::From8BitData( diagnostic.data(), diagnostic.size() );
88 auto owner = std::make_shared<S3D::MODEL_IMPORT_RESULT>( std::move( aImported ) );
89 result.model = owner->GetModel();
90 result.owner = std::move( owner );
93 completion( aGeneration, std::move(
result ) );
wxString result
Test unit parsing edge cases and error handling.