mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-26 18:21:18 -06:00
Fixed some more warnings, moved function to get ExtrusionRole name into ExtrusionEntity.hpp
So it can be called from wherever it may be needed
This commit is contained in:
parent
3f988b314c
commit
a985a2720f
9 changed files with 105 additions and 123 deletions
|
|
@ -60,10 +60,6 @@
|
|||
#endif // ENABLE_RENDER_STATISTICS
|
||||
|
||||
static const float TRACKBALLSIZE = 0.8f;
|
||||
static const float GROUND_Z = -0.02f;
|
||||
|
||||
static const float GIZMO_RESET_BUTTON_HEIGHT = 22.0f;
|
||||
static const float GIZMO_RESET_BUTTON_WIDTH = 70.f;
|
||||
|
||||
static const float DEFAULT_BG_DARK_COLOR[3] = { 0.478f, 0.478f, 0.478f };
|
||||
static const float DEFAULT_BG_LIGHT_COLOR[3] = { 0.753f, 0.753f, 0.753f };
|
||||
|
|
|
|||
|
|
@ -433,7 +433,6 @@ private:
|
|||
bool m_initialized;
|
||||
bool m_apply_zoom_to_volumes_filter;
|
||||
mutable std::vector<int> m_hover_volume_idxs;
|
||||
bool m_warning_texture_enabled;
|
||||
bool m_legend_texture_enabled;
|
||||
bool m_picking_enabled;
|
||||
bool m_moving_enabled;
|
||||
|
|
|
|||
|
|
@ -1074,8 +1074,8 @@ const std::vector<std::string>& ObjectList::get_options_for_bundle(const wxStrin
|
|||
static bool improper_category(const std::string& category, const int extruders_cnt, const bool is_object_settings = true)
|
||||
{
|
||||
return category.empty() ||
|
||||
extruders_cnt == 1 && (category == "Extruders" || category == "Wipe options" ) ||
|
||||
!is_object_settings && category == "Support material";
|
||||
(extruders_cnt == 1 && (category == "Extruders" || category == "Wipe options" )) ||
|
||||
(!is_object_settings && category == "Support material");
|
||||
}
|
||||
|
||||
void ObjectList::get_options_menu(settings_menu_hierarchy& settings_menu, const bool is_part)
|
||||
|
|
|
|||
|
|
@ -363,12 +363,14 @@ private:
|
|||
MutableHistoryInterval& operator=(const MutableHistoryInterval &rhs);
|
||||
};
|
||||
|
||||
#ifdef SLIC3R_UNDOREDO_DEBUG
|
||||
static inline std::string ptr_to_string(const void* ptr)
|
||||
{
|
||||
char buf[64];
|
||||
sprintf(buf, "%p", ptr);
|
||||
return buf;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Smaller objects (Model, ModelObject, ModelInstance, ModelVolume, DynamicPrintConfig)
|
||||
// are mutable and there is not tracking of the changes, therefore a snapshot needs to be
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue