Skip to content

Commit

Permalink
Rename Raft:getBottomLayers for more consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed May 15, 2024
1 parent 52728ae commit f62285e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/raft.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ class Raft
static size_t getTotalExtraLayers();

/*!
* \brief Get the amount of bottom for the raft interface.
* \note This is currently hard-coded to 1 because we have yet no setting for the bottom
* \brief Get the amount of layers for the raft base.
* \note This is currently hard-coded to 1 because we have yet no setting for the base
*/
static size_t getBottomLayers();
static size_t getBaseLayers();

/*! \brief Get the amount of layers for the raft interface. */
static size_t getInterfaceLayers();
Expand Down
4 changes: 2 additions & 2 deletions src/raft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ coord_t Raft::getFillerLayerHeight()

size_t Raft::getTotalExtraLayers()
{
return getBottomLayers() + getInterfaceLayers() + getSurfaceLayers() + getFillerLayerCount();
return getBaseLayers() + getInterfaceLayers() + getSurfaceLayers() + getFillerLayerCount();
}

size_t Raft::getBottomLayers()
size_t Raft::getBaseLayers()
{
const Settings& mesh_group_settings = Application::getInstance().current_slice_->scene.current_mesh_group->settings;
if (mesh_group_settings.get<EPlatformAdhesion>("adhesion_type") != EPlatformAdhesion::RAFT)
Expand Down

0 comments on commit f62285e

Please sign in to comment.