diff options
| author | Juan Linietsky | 2017-05-29 22:11:33 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-05-30 08:56:19 -0300 |
| commit | 5567e898d1052c1e2c2d32d3c37dfd957f4dc4bd (patch) | |
| tree | e0df9b88b6c485f846dab9ae51369288f191cab8 /editor/editor_node.cpp | |
| parent | 0a6faeb4f5914061c29d946eaa29f2c50b8472fb (diff) | |
| download | godot-5567e898d1052c1e2c2d32d3c37dfd957f4dc4bd.tar.gz godot-5567e898d1052c1e2c2d32d3c37dfd957f4dc4bd.tar.zst godot-5567e898d1052c1e2c2d32d3c37dfd957f4dc4bd.zip | |
Several fixes related to PBR and Environment
Diffstat (limited to 'editor/editor_node.cpp')
| -rw-r--r-- | editor/editor_node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 245b35079..c1f422cce 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1380,7 +1380,7 @@ void EditorNode::_property_editor_back() { void EditorNode::_save_default_environment() { - Ref<Environment> fallback = get_scene_root()->get_world()->get_fallback_environment(); + Ref<Environment> fallback = get_tree()->get_root()->get_world()->get_fallback_environment(); if (fallback.is_valid() && fallback->get_path().is_resource_file()) { Map<RES, bool> processed; |
