mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 23:36:00 +08:00
Fix issue 40
This commit is contained in:
parent
e1ea484669
commit
9225f237b2
@ -13,7 +13,6 @@
|
|||||||
#include "slic3r/GUI/MainFrame.hpp"
|
#include "slic3r/GUI/MainFrame.hpp"
|
||||||
#include "slic3r/GUI/GUI.hpp"
|
#include "slic3r/GUI/GUI.hpp"
|
||||||
#include "slic3r/GUI/GUI_App.hpp"
|
#include "slic3r/GUI/GUI_App.hpp"
|
||||||
#include "slic3r/GUI/GUI_ObjectManipulation.hpp"
|
|
||||||
#include "slic3r/GUI/Gizmos/GLGizmoEmboss.hpp"
|
#include "slic3r/GUI/Gizmos/GLGizmoEmboss.hpp"
|
||||||
#include "slic3r/GUI/CameraUtils.hpp"
|
#include "slic3r/GUI/CameraUtils.hpp"
|
||||||
#include "slic3r/GUI/format.hpp"
|
#include "slic3r/GUI/format.hpp"
|
||||||
@ -191,11 +190,6 @@ void EmbossCreateVolumeJob::finalize(bool canceled, std::exception_ptr &eptr) {
|
|||||||
|
|
||||||
obj_list->selection_changed();
|
obj_list->selection_changed();
|
||||||
|
|
||||||
// WHY selection_changed set manipulation to world ???
|
|
||||||
// so I set it back to local --> RotationGizmo need it
|
|
||||||
ObjectManipulation *manipul = wxGetApp().obj_manipul();
|
|
||||||
manipul->set_coordinates_type(ECoordinatesType::Local);
|
|
||||||
|
|
||||||
// redraw scene
|
// redraw scene
|
||||||
canvas->reload_scene(true);
|
canvas->reload_scene(true);
|
||||||
}
|
}
|
||||||
@ -613,17 +607,21 @@ void priv::update_volume(TriangleMesh &&mesh,
|
|||||||
volume->set_new_unique_id();
|
volume->set_new_unique_id();
|
||||||
volume->calculate_convex_hull();
|
volume->calculate_convex_hull();
|
||||||
volume->get_object()->invalidate_bounding_box();
|
volume->get_object()->invalidate_bounding_box();
|
||||||
volume->name = data.volume_name;
|
|
||||||
volume->text_configuration = data.text_configuration;
|
volume->text_configuration = data.text_configuration;
|
||||||
|
|
||||||
// update volume in right panel( volume / object name)
|
|
||||||
const Selection &selection = canvas->get_selection();
|
const Selection &selection = canvas->get_selection();
|
||||||
const GLVolume * gl_volume = selection.get_volume(
|
const GLVolume * gl_volume = selection.get_volume(
|
||||||
*selection.get_volume_idxs().begin());
|
*selection.get_volume_idxs().begin());
|
||||||
int object_idx = gl_volume->object_idx();
|
int object_idx = gl_volume->object_idx();
|
||||||
int volume_idx = gl_volume->volume_idx();
|
|
||||||
ObjectList *obj_list = app.obj_list();
|
if (volume->name != data.volume_name) {
|
||||||
obj_list->update_name_in_list(object_idx, volume_idx);
|
volume->name = data.volume_name;
|
||||||
|
|
||||||
|
// update volume name in right panel( volume / object name)
|
||||||
|
int volume_idx = gl_volume->volume_idx();
|
||||||
|
ObjectList *obj_list = app.obj_list();
|
||||||
|
obj_list->update_name_in_list(object_idx, volume_idx);
|
||||||
|
}
|
||||||
|
|
||||||
// update printable state on canvas
|
// update printable state on canvas
|
||||||
if (volume->type() == ModelVolumeType::MODEL_PART)
|
if (volume->type() == ModelVolumeType::MODEL_PART)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user