You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Clear AABB when Mesh is cleared
This commit is contained in:
@@ -844,6 +844,7 @@ void MeshStorage::mesh_clear(RID p_mesh) {
|
|||||||
mesh->surface_count = 0;
|
mesh->surface_count = 0;
|
||||||
mesh->material_cache.clear();
|
mesh->material_cache.clear();
|
||||||
mesh->has_bone_weights = false;
|
mesh->has_bone_weights = false;
|
||||||
|
mesh->aabb = AABB();
|
||||||
mesh->dependency.changed_notify(Dependency::DEPENDENCY_CHANGED_MESH);
|
mesh->dependency.changed_notify(Dependency::DEPENDENCY_CHANGED_MESH);
|
||||||
|
|
||||||
for (Mesh *E : mesh->shadow_owners) {
|
for (Mesh *E : mesh->shadow_owners) {
|
||||||
|
|||||||
@@ -851,6 +851,7 @@ void MeshStorage::mesh_clear(RID p_mesh) {
|
|||||||
mesh->surface_count = 0;
|
mesh->surface_count = 0;
|
||||||
mesh->material_cache.clear();
|
mesh->material_cache.clear();
|
||||||
mesh->has_bone_weights = false;
|
mesh->has_bone_weights = false;
|
||||||
|
mesh->aabb = AABB();
|
||||||
mesh->dependency.changed_notify(Dependency::DEPENDENCY_CHANGED_MESH);
|
mesh->dependency.changed_notify(Dependency::DEPENDENCY_CHANGED_MESH);
|
||||||
|
|
||||||
for (Mesh *E : mesh->shadow_owners) {
|
for (Mesh *E : mesh->shadow_owners) {
|
||||||
|
|||||||
Reference in New Issue
Block a user