Skip to content

Commit

Permalink
CLIOptions: Fix resolution and position being update on file change (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal authored Dec 3, 2024
1 parent e6119e9 commit 2dc5a0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/F3DStarter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,7 @@ int F3DStarter::Start(int argc, char** argv)

if (!this->Internals->AppOptions.NoRender)
{
this->Internals->ApplyPositionAndResolution();
f3d::window& window = this->Internals->Engine->getWindow();
f3d::interactor& interactor = this->Internals->Engine->getInteractor();

Expand Down Expand Up @@ -1213,7 +1214,6 @@ void F3DStarter::LoadFileGroup(
this->Internals->UpdateBindings(configPaths);

this->Internals->Engine->setOptions(this->Internals->LibOptions);
this->Internals->ApplyPositionAndResolution();

f3d::log::debug("Checking files:");
for (const fs::path& tmpPath : paths)
Expand Down
2 changes: 1 addition & 1 deletion doc/user/CONFIGURATION_FILE.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The following options <b> cannot </b> be set via config file:
`help`, `version`, `readers-list`, `config`, `dry-run` and `input`.

The following options <b>are only taken on the first load</b>:
`no-render`, `output`, and all testing options.
`no-render`, `output`, `position`, `resolution` and all testing options.

Boolean options that have been turned on in the configuration file can be turned
off on the command line if needed, eg: `--point-sprites=false`.
Expand Down

0 comments on commit 2dc5a0e

Please sign in to comment.