Merge pull request #8538 from RameshRavone/patch-7
3.0 recompute_aabb on add_surface
This commit is contained in:
commit
ffbe6660cf
1 changed files with 2 additions and 0 deletions
|
@ -311,6 +311,8 @@ void Mesh::add_surface(uint32_t p_format, PrimitiveType p_primitive, const PoolV
|
|||
surfaces.push_back(s);
|
||||
|
||||
VisualServer::get_singleton()->mesh_add_surface(mesh, p_format, (VS::PrimitiveType)p_primitive, p_array, p_vertex_count, p_index_array, p_index_count, p_aabb, p_blend_shapes, p_bone_aabbs);
|
||||
|
||||
_recompute_aabb();
|
||||
}
|
||||
|
||||
void Mesh::add_surface_from_arrays(PrimitiveType p_primitive, const Array &p_arrays, const Array &p_blend_shapes, uint32_t p_flags) {
|
||||
|
|
Loading…
Reference in a new issue