diff --git a/include/flamegpu/visualiser/ModelVis.h b/include/flamegpu/visualiser/ModelVis.h index bffd0605d..05c7191e9 100644 --- a/include/flamegpu/visualiser/ModelVis.h +++ b/include/flamegpu/visualiser/ModelVis.h @@ -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 diff --git a/src/flamegpu/visualiser/ModelVis.cpp b/src/flamegpu/visualiser/ModelVis.cpp index 7de62a7db..fae1f00a0 100644 --- a/src/flamegpu/visualiser/ModelVis.cpp +++ b/src/flamegpu/visualiser/ModelVis.cpp @@ -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(); // set modelPath, texturePath