diff --git a/src/libslic3r/Technologies.hpp b/src/libslic3r/Technologies.hpp index 877f365db..77802d811 100644 --- a/src/libslic3r/Technologies.hpp +++ b/src/libslic3r/Technologies.hpp @@ -5,7 +5,7 @@ #define ENABLE_1_42_0 1 // Add z coordinate to model instances' offset -// Add x and y rotation components to model instances' offset +// Add x and y rotation components to model instances' rotation // Add scaling factors for all the three axes to model instances #define ENABLE_MODELINSTANCE_3D_FULL_TRANSFORM (1 && ENABLE_1_42_0) // Add double click on gizmo grabbers to reset transformation components to their default value diff --git a/src/slic3r/GUI/3DScene.cpp b/src/slic3r/GUI/3DScene.cpp index 9ffff2285..2ae900e00 100644 --- a/src/slic3r/GUI/3DScene.cpp +++ b/src/slic3r/GUI/3DScene.cpp @@ -693,6 +693,14 @@ void GLVolume::generate_layer_height_texture(const PrintObject *print_object, bo #define LAYER_HEIGHT_TEXTURE_WIDTH 1024 #define LAYER_HEIGHT_TEXTURE_HEIGHT 1024 +#if ENABLE_EXTENDED_SELECTION +std::vector GLVolumeCollection::load_object( + const ModelObject *model_object, + int obj_idx, + const std::vector &instance_idxs, + const std::string &color_by, + bool use_VBOs) +#else std::vector GLVolumeCollection::load_object( const ModelObject *model_object, int obj_idx, @@ -701,6 +709,7 @@ std::vector GLVolumeCollection::load_object( const std::string &select_by, const std::string &drag_by, bool use_VBOs) +#endif // ENABLE_EXTENDED_SELECTION { static float colors[4][4] = { { 1.0f, 1.0f, 0.0f, 1.f }, diff --git a/src/slic3r/GUI/3DScene.hpp b/src/slic3r/GUI/3DScene.hpp index ffec0fae6..09f425ba0 100644 --- a/src/slic3r/GUI/3DScene.hpp +++ b/src/slic3r/GUI/3DScene.hpp @@ -437,6 +437,14 @@ public: GLVolumeCollection() {}; ~GLVolumeCollection() { clear(); }; +#if ENABLE_EXTENDED_SELECTION + std::vector load_object( + const ModelObject *model_object, + int obj_idx, + const std::vector &instance_idxs, + const std::string &color_by, + bool use_VBOs); +#else std::vector load_object( const ModelObject *model_object, int obj_idx, @@ -445,6 +453,7 @@ public: const std::string &select_by, const std::string &drag_by, bool use_VBOs); +#endif // ENABLE_EXTENDED_SELECTION int load_wipe_tower_preview( int obj_idx, float pos_x, float pos_y, float width, float depth, float height, float rotation_angle, bool use_VBOs, bool size_unknown, float brim_width); diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 51229f139..116d8cb3b 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -3123,7 +3123,7 @@ std::vector GLCanvas3D::load_object(const ModelObject& model_object, int ob } } #if ENABLE_EXTENDED_SELECTION - return m_volumes.load_object(&model_object, obj_idx, instance_idxs, m_color_by, "object", "object", m_use_VBOs && m_initialized); + return m_volumes.load_object(&model_object, obj_idx, instance_idxs, m_color_by, m_use_VBOs && m_initialized); #else return m_volumes.load_object(&model_object, obj_idx, instance_idxs, m_color_by, m_select_by, m_drag_by, m_use_VBOs && m_initialized); #endif // ENABLE_EXTENDED_SELECTION @@ -6025,7 +6025,11 @@ void GLCanvas3D::_load_shells() instance_ids[i] = i; } +#if ENABLE_EXTENDED_SELECTION + m_volumes.load_object(model_obj, object_id, instance_ids, "object", m_use_VBOs && m_initialized); +#else m_volumes.load_object(model_obj, object_id, instance_ids, "object", "object", "object", m_use_VBOs && m_initialized); +#endif // ENABLE_EXTENDED_SELECTION ++object_id; }