Rename and reorder bake mode properties for consistency

The order now goes from least to most computationally expensive:

- Disabled
- Static
- Dynamic
This commit is contained in:
Hugo Locurcio 2021-11-26 17:47:37 +01:00
parent 80e292b3e0
commit e962900f23
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
16 changed files with 37 additions and 33 deletions

View file

@ -282,7 +282,7 @@ Vector3 VoxelGI::get_extents() const {
void VoxelGI::_find_meshes(Node *p_at_node, List<PlotMesh> &plot_meshes) {
MeshInstance3D *mi = Object::cast_to<MeshInstance3D>(p_at_node);
if (mi && mi->get_gi_mode() == GeometryInstance3D::GI_MODE_BAKED && mi->is_visible_in_tree()) {
if (mi && mi->get_gi_mode() == GeometryInstance3D::GI_MODE_STATIC && mi->is_visible_in_tree()) {
Ref<Mesh> mesh = mi->get_mesh();
if (mesh.is_valid()) {
AABB aabb = mesh->get_aabb();