You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Remove ghost of canvas zoom controls during onion skinning
This commit is contained in:
@@ -4515,6 +4515,7 @@ Dictionary CanvasItemEditor::get_state() const {
|
||||
state["show_rulers"] = show_rulers;
|
||||
state["show_guides"] = show_guides;
|
||||
state["show_helpers"] = show_helpers;
|
||||
state["show_zoom_control"] = zoom_hb->is_visible();
|
||||
state["show_edit_locks"] = show_edit_locks;
|
||||
state["snap_rotation"] = snap_rotation;
|
||||
state["snap_relative"] = snap_relative;
|
||||
@@ -4643,6 +4644,11 @@ void CanvasItemEditor::set_state(const Dictionary &p_state) {
|
||||
view_menu->get_popup()->set_item_checked(idx, show_edit_locks);
|
||||
}
|
||||
|
||||
if (state.has("show_zoom_control")) {
|
||||
// This one is not user-controllable, but instrumentable
|
||||
zoom_hb->set_visible(state["show_zoom_control"]);
|
||||
}
|
||||
|
||||
if (state.has("snap_rotation")) {
|
||||
snap_rotation = state["snap_rotation"];
|
||||
int idx = snap_config_menu->get_popup()->get_item_index(SNAP_USE_ROTATION);
|
||||
|
||||
Reference in New Issue
Block a user