Skip to content

set_surface_override_material is out of bounds when a softbody3d mesh has more than one material slot #106156

Open
@6b9BVecLBDvbEx

Description

@6b9BVecLBDvbEx

Tested versions

reproducible in v4.4.1 and v4.5-dev3

System information

Fedora Linux 41

Issue description

debugger output:
E 0:00:00:510 set_surface_override_material: Index p_surface = 1 is out of bounds (surface_override_materials.size() = 1). <C++ Source> scene/3d/mesh_instance_3d.cpp:353 @ set_surface_override_material()

1.mp4

Steps to reproduce

  1. use blender to create a simple mesh with 2 faces and 2 different materials for each face
  2. attach this mesh to a softbody3d node in godot

Minimal reproduction project (MRP)

softbody.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions