diff options
author | bubnikv <bubnikv@gmail.com> | 2019-04-26 18:28:31 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-04-26 18:28:31 +0300 |
commit | 6526a8fcafaf2453e5b69ef65409a1bf728b63de (patch) | |
tree | 13d5ea1a7ef870660c2b9594c373ed3aeab04c4a /src/slic3r/GUI/3DScene.cpp | |
parent | f78c3a0f1b02d462c7e7d3d5069d08f1f3aee6b2 (diff) |
WIP: Transformation of instances in world coordinate space:
Ulocking the "anisotropic" scaling checkbox will bake the transformation
into meshes to allow for scaling in world axes.
Optimized and templated the stl_transform functions, now also available for 3x3 matrices.
The Canvas3D::reload_scene() now maintains selection even if all volumes of an instance changed their IDs.
Diffstat (limited to 'src/slic3r/GUI/3DScene.cpp')
-rw-r--r-- | src/slic3r/GUI/3DScene.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slic3r/GUI/3DScene.cpp b/src/slic3r/GUI/3DScene.cpp index 9038e388c..bbedc0802 100644 --- a/src/slic3r/GUI/3DScene.cpp +++ b/src/slic3r/GUI/3DScene.cpp @@ -716,6 +716,8 @@ int GLVolumeCollection::load_wipe_tower_preview( v.bounding_box = v.indexed_vertex_array.bounding_box(); v.indexed_vertex_array.finalize_geometry(use_VBOs); v.composite_id = GLVolume::CompositeID(obj_idx, 0, 0); + v.geometry_id.first = 0; + v.geometry_id.second = wipe_tower_instance_id().id; v.is_wipe_tower = true; v.shader_outside_printer_detection_enabled = ! size_unknown; return int(this->volumes.size() - 1); |