You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Fixed bug where all file dialogs requested thumbnails even if hidden.
This commit is contained in:
@@ -107,8 +107,8 @@ void EditorFileDialog::_notification(int p_what) {
|
|||||||
fav_up->set_icon(get_icon("MoveUp", "EditorIcons"));
|
fav_up->set_icon(get_icon("MoveUp", "EditorIcons"));
|
||||||
fav_down->set_icon(get_icon("MoveDown", "EditorIcons"));
|
fav_down->set_icon(get_icon("MoveDown", "EditorIcons"));
|
||||||
fav_rm->set_icon(get_icon("Remove", "EditorIcons"));
|
fav_rm->set_icon(get_icon("Remove", "EditorIcons"));
|
||||||
|
// DO NOT CALL UPDATE FILE LIST HERE, ALL HUNDREDS OF HIDDEN DIALOGS WILL RESPOND, CALL INVALIDATE INSTEAD
|
||||||
update_file_list();
|
invalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -637,6 +637,7 @@ bool EditorFileDialog::_is_open_should_be_disabled() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DO NOT USE THIS FUNCTION UNLESS NEEDED, CALL INVALIDATE() INSTEAD.
|
||||||
void EditorFileDialog::update_file_list() {
|
void EditorFileDialog::update_file_list() {
|
||||||
|
|
||||||
int thumbnail_size = EditorSettings::get_singleton()->get("filesystem/file_dialog/thumbnail_size");
|
int thumbnail_size = EditorSettings::get_singleton()->get("filesystem/file_dialog/thumbnail_size");
|
||||||
|
|||||||
@@ -1709,6 +1709,9 @@ Vector3 VoxelLightBaker::_compute_ray_trace_at_pos(const Vector3 &p_pos, const V
|
|||||||
accum.y += light[cell].accum[i][1] * amount;
|
accum.y += light[cell].accum[i][1] * amount;
|
||||||
accum.z += light[cell].accum[i][2] * amount;
|
accum.z += light[cell].accum[i][2] * amount;
|
||||||
}
|
}
|
||||||
|
accum.x += cells[cell].emission[0];
|
||||||
|
accum.y += cells[cell].emission[1];
|
||||||
|
accum.z += cells[cell].emission[2];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user