Skip to content

Commit

Permalink
Breaking Change: Rename ModelVis::addStaticModel() -> newStaticModel()
Browse files Browse the repository at this point in the history
This makes it more consistent with rest of ModelVis methods.
  • Loading branch information
Robadob committed Sep 12, 2022
1 parent 8dabd35 commit 89e6620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/flamegpu/visualiser/ModelVis.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class ModelVis {
* @param modelPath Path of the model on disk
* @param texturePath Optional path to a texture fore the model on disk
*/
StaticModelVis addStaticModel(const std::string &modelPath, const std::string &texturePath = "");
StaticModelVis newStaticModel(const std::string &modelPath, const std::string &texturePath = "");
/**
* Create a new sketch constructed from individual line segments to the visualisation
* @param r Initial color's red component
Expand Down
2 changes: 1 addition & 1 deletion src/flamegpu/visualiser/ModelVis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void ModelVis::setBeginPaused(const bool& beginPaused) {
modelCfg.beginPaused = beginPaused;
}

StaticModelVis ModelVis::addStaticModel(const std::string &modelPath, const std::string &texturePath) {
StaticModelVis ModelVis::newStaticModel(const std::string &modelPath, const std::string &texturePath) {
// Create ModelConfig::StaticModel
auto m = std::make_shared<ModelConfig::StaticModel>();
// set modelPath, texturePath
Expand Down

0 comments on commit 89e6620

Please sign in to comment.