Fix 3D editor camera not updating correctly
This commit is contained in:
parent
ad4c2c3da8
commit
4e95d26c97
1 changed files with 10 additions and 9 deletions
|
|
@ -7309,6 +7309,16 @@ void Node3DEditor::set_state(const Dictionary &p_state) {
|
|||
}
|
||||
}
|
||||
|
||||
if (d.has("zfar")) {
|
||||
settings_zfar->set_value(double(d["zfar"]));
|
||||
}
|
||||
if (d.has("znear")) {
|
||||
settings_znear->set_value(double(d["znear"]));
|
||||
}
|
||||
if (d.has("fov")) {
|
||||
settings_fov->set_value(double(d["fov"]));
|
||||
}
|
||||
|
||||
if (d.has("viewports")) {
|
||||
Array vp = d["viewports"];
|
||||
uint32_t vp_size = static_cast<uint32_t>(vp.size());
|
||||
|
|
@ -7322,15 +7332,6 @@ void Node3DEditor::set_state(const Dictionary &p_state) {
|
|||
}
|
||||
}
|
||||
|
||||
if (d.has("zfar")) {
|
||||
settings_zfar->set_value(double(d["zfar"]));
|
||||
}
|
||||
if (d.has("znear")) {
|
||||
settings_znear->set_value(double(d["znear"]));
|
||||
}
|
||||
if (d.has("fov")) {
|
||||
settings_fov->set_value(double(d["fov"]));
|
||||
}
|
||||
if (d.has("show_grid")) {
|
||||
bool use = d["show_grid"];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue