Fix typo.

This commit is contained in:
Relintai 2024-09-08 16:14:46 +02:00
parent 4f62ea4b8e
commit a02d73b035

View File

@ -559,7 +559,7 @@ Ref<Material> ProceduralTreeMesh::get_twig_material() const {
void ProceduralTreeMesh::set_trunk_material(const Ref<Material> &p_material) {
_surfaces[TREE_SURFACE_TRUNK].material = p_material;
if (!pending_request) {
int si = _surfaces[TREE_SURFACE_TWIG].surface_index;
int si = _surfaces[TREE_SURFACE_TRUNK].surface_index;
if (si != -1) {
// just apply it, else it'll happen when _update is called.