message: MaterialXView startup improvements
  Simplify startup pathing to make install and dev builds behave the same.
  Disable display of window frame (on Windows at least) for offscreen rendering from command line.
diff: @@ -61,17 +61,13 @@ template<class T> void parseToken(std::string token, std::string type, T& res)
  mx::FileSearchPath getDefaultSearchPath()
  {
  mx::FilePath modulePath = mx::FilePath::getModulePath();
  - mx::FilePath installRootPath = modulePath.getParentPath();
  - mx::FilePath devRootPath = installRootPath.getParentPath().getParentPath();
  + mx::FilePath parentPath = modulePath.getParentPath();
  mx::FileSearchPath searchPath;
  - if ((devRootPath / "libraries").exists())
  + searchPath.append(modulePath);
  + if ((parentPath / "libraries").exists())
  {
  - searchPath.append(devRootPath);
  - }
  - else
  - {
  - searchPath.append(installRootPath);
  + searchPath.append(parentPath);
  }
  return searchPath;
  @@ -300,7 +296,14 @@ int main(int argc, char* const argv[])
  viewer->setBakeHeight(bakeHeight);
  viewer->setBakeFilename(bakeFilename);
  viewer->initialize();
  - if (!bakeFilename.empty())
  +
  + if (!captureFilename.empty())
  + {
  + viewer->requestFrameCapture(captureFilename);
  + viewer->draw_all();
  + viewer->requestExit();
  + }
  + else if (!bakeFilename.empty())
  {
  viewer->bakeTextures();
  viewer->requestExit();
  @@ -309,11 +312,6 @@ int main(int argc, char* const argv[])
  {
  viewer->set_visible(true);
  }
  - if (!captureFilename.empty())
  - {
  - viewer->requestFrameCapture(captureFilename);
  - viewer->requestExit();
  - }
  ng::mainloop(refresh);
  }
  ng::shutdown();
  