summaryrefslogtreecommitdiffstats
path: root/scene/3d/soft_body_3d.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/soft_body_3d.cpp
parentb4b7c97d3839170180e4f3f7c2bd3179b374057a (diff)
downloadredot-engine-92731d292c66be637b837653044273c7000f63a3.tar.gz
Rename get_surface_material to get_surface_override_material
Diffstat (limited to 'scene/3d/soft_body_3d.cpp')
-rw-r--r--scene/3d/soft_body_3d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/soft_body_3d.cpp b/scene/3d/soft_body_3d.cpp
index 08e25b589e..98ac6aa65e 100644
--- a/scene/3d/soft_body_3d.cpp
+++ b/scene/3d/soft_body_3d.cpp
@@ -452,7 +452,7 @@ void SoftBody3D::become_mesh_owner() {
mesh_owner = true;
Vector<Ref<Material>> copy_materials;
- copy_materials.append_array(materials);
+ copy_materials.append_array(surface_override_materials);
ERR_FAIL_COND(!mesh->get_surface_count());
@@ -472,7 +472,7 @@ void SoftBody3D::become_mesh_owner() {
set_mesh(soft_mesh);
for (int i = copy_materials.size() - 1; 0 <= i; --i) {
- set_surface_material(i, copy_materials[i]);
+ set_surface_override_material(i, copy_materials[i]);
}
}
}