22 mSceneName = settings.
value( QStringLiteral(
"UI/last3DSceneExportName" ), QStringLiteral(
"Scene" ) ).toString();
23 mSceneFolderPath = settings.
value( QStringLiteral(
"UI/last3DSceneExportDir" ), QDir::homePath() ).toString();
24 mTerrainResolution = settings.
value( QStringLiteral(
"UI/last3DSceneExportTerrainResolution" ), 128 ).toInt();
25 mTerrainTextureResolution = settings.
value( QStringLiteral(
"UI/last3DSceneExportTerrainTextureResolution" ), 512 ).toInt();
26 mScale = settings.
value( QStringLiteral(
"UI/last3DSceneExportModelScale" ), 1.0f ).toFloat();
27 mSmoothEdges = settings.
value( QStringLiteral(
"UI/last3DSceneExportSmoothEdges" ),
false ).toBool();
28 mExportNormals = settings.
value( QStringLiteral(
"UI/last3DSceneExportExportNormals" ),
true ).toBool();
29 mExportTextures = settings.
value( QStringLiteral(
"UI/last3DSceneExportExportTextures" ),
true ).toBool();
35 settings.
setValue( QStringLiteral(
"UI/last3DSceneExportName" ), mSceneName );
36 settings.
setValue( QStringLiteral(
"UI/last3DSceneExportDir" ), mSceneFolderPath );
37 settings.
setValue( QStringLiteral(
"UI/last3DSceneExportTerrainResolution" ), mTerrainResolution );
38 settings.
setValue( QStringLiteral(
"UI/last3DSceneExportTerrainTextureResolution" ), mTerrainTextureResolution );
39 settings.
setValue( QStringLiteral(
"UI/last3DSceneExportModelScale" ), mScale );
40 settings.
setValue( QStringLiteral(
"UI/last3DSceneExportSmoothEdges" ), mSmoothEdges );
41 settings.
setValue( QStringLiteral(
"UI/last3DSceneExportExportNormals" ), mExportNormals );
42 settings.
setValue( QStringLiteral(
"UI/last3DSceneExportExportTextures" ), mExportTextures );