Fixed mesh importing when multiple materials are present
This commit is contained in:
parent
ca19403306
commit
62eda56e67
@ -1097,11 +1097,13 @@ void ArrayMesh::_bind_methods() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ArrayMesh::reload_from_file() {
|
void ArrayMesh::reload_from_file() {
|
||||||
for (int i = 0; i < get_surface_count(); i++) {
|
VisualServer::get_singleton()->mesh_clear(mesh);
|
||||||
surface_remove(i);
|
surfaces.clear();
|
||||||
}
|
clear_blend_shapes();
|
||||||
|
|
||||||
Resource::reload_from_file();
|
Resource::reload_from_file();
|
||||||
String path = get_path();
|
|
||||||
|
_change_notify();
|
||||||
}
|
}
|
||||||
|
|
||||||
ArrayMesh::ArrayMesh() {
|
ArrayMesh::ArrayMesh() {
|
||||||
|
Loading…
Reference in New Issue
Block a user