You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Dictionary::copy -> ::duplicate
This commit is contained in:
@@ -1348,14 +1348,14 @@ void AnimationPlayerEditor::_prepare_onion_layers_2() {
|
||||
if (SpatialEditor::get_singleton()->is_visible()) {
|
||||
// 3D
|
||||
spatial_edit_state = SpatialEditor::get_singleton()->get_state();
|
||||
Dictionary new_state = spatial_edit_state.copy();
|
||||
Dictionary new_state = spatial_edit_state.duplicate();
|
||||
new_state["show_grid"] = false;
|
||||
new_state["show_origin"] = false;
|
||||
Array orig_vp = spatial_edit_state["viewports"];
|
||||
Array vp;
|
||||
vp.resize(4);
|
||||
for (int i = 0; i < vp.size(); i++) {
|
||||
Dictionary d = ((Dictionary)orig_vp[i]).copy();
|
||||
Dictionary d = ((Dictionary)orig_vp[i]).duplicate();
|
||||
d["use_environment"] = false;
|
||||
d["doppler"] = false;
|
||||
d["gizmos"] = onion.include_gizmos ? d["gizmos"] : Variant(false);
|
||||
@@ -1368,7 +1368,7 @@ void AnimationPlayerEditor::_prepare_onion_layers_2() {
|
||||
} else { // CanvasItemEditor
|
||||
// 2D
|
||||
canvas_edit_state = CanvasItemEditor::get_singleton()->get_state();
|
||||
Dictionary new_state = canvas_edit_state.copy();
|
||||
Dictionary new_state = canvas_edit_state.duplicate();
|
||||
new_state["show_grid"] = false;
|
||||
new_state["show_rulers"] = false;
|
||||
new_state["show_guides"] = false;
|
||||
|
||||
Reference in New Issue
Block a user