From 89e66205a261660f1bc48cddfb0029e96bc0d00c Mon Sep 17 00:00:00 2001 From: Robert Chisholm Date: Wed, 31 Aug 2022 11:23:01 +0100 Subject: [PATCH] Breaking Change: Rename ModelVis::addStaticModel() -> newStaticModel() This makes it more consistent with rest of ModelVis methods. --- include/flamegpu/visualiser/ModelVis.h | 2 +- src/flamegpu/visualiser/ModelVis.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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