Rename get_surface_material to get_surface_override_material
This commit is contained in:
parent
b4b7c97d38
commit
92731d292c
16 changed files with 46 additions and 46 deletions
|
|
@ -93,7 +93,7 @@ void MeshLibraryEditor::_import_scene(Node *p_scene, Ref<MeshLibrary> p_library,
|
|||
|
||||
mesh = mesh->duplicate();
|
||||
for (int j = 0; j < mesh->get_surface_count(); ++j) {
|
||||
Ref<Material> mat = mi->get_surface_material(j);
|
||||
Ref<Material> mat = mi->get_surface_override_material(j);
|
||||
|
||||
if (mat.is_valid()) {
|
||||
mesh->surface_set_material(j, mat);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue