summaryrefslogtreecommitdiff
path: root/scene/3d/gi_probe.cpp
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2021-04-13 20:45:16 -0700
committerclayjohn <claynjohn@gmail.com>2021-04-14 20:24:03 -0700
commit92731d292c66be637b837653044273c7000f63a3 (patch)
tree0b03005c4150a89e09ea49ec64c51662c89a0267 /scene/3d/gi_probe.cpp
parentb4b7c97d3839170180e4f3f7c2bd3179b374057a (diff)
Rename get_surface_material to get_surface_override_material
Diffstat (limited to 'scene/3d/gi_probe.cpp')
-rw-r--r--scene/3d/gi_probe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/gi_probe.cpp b/scene/3d/gi_probe.cpp
index 0da53d0101..4d7fc29f15 100644
--- a/scene/3d/gi_probe.cpp
+++ b/scene/3d/gi_probe.cpp
@@ -343,7 +343,7 @@ void GIProbe::_find_meshes(Node *p_at_node, List<PlotMesh> &plot_meshes) {
pm.local_xform = xf;
pm.mesh = mesh;
for (int i = 0; i < mesh->get_surface_count(); i++) {
- pm.instance_materials.push_back(mi->get_surface_material(i));
+ pm.instance_materials.push_back(mi->get_surface_override_material(i));
}
pm.override_material = mi->get_material_override();
plot_meshes.push_back(pm);