godotengine / godotengine/godot

CSGMesh3D does not update its AABB when resized

Open
#96,969 2 comments 0 reactions 0 assignees View on GitHub
bug topic:3d topic:editor topic:rendering
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

4.3 stable, 4.4 dev2

### System information

Godot v4.4.dev2 - Windows 10.0.19045 - Vulkan (Forward+) - dedicated Radeon RX 560 Series (Advanced Micro Devices, Inc.; 31.0.14001.45012) - Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz (4 Threads)

### Issue description

I noticed two problems when using CSGMesh3D

1. AABB does not update (blue border) when resizing with the scale tool in the top bar
![1](https://github.com/user-attachments/assets/82ad7fea-0fd6-4eb6-a294-cf1934c09fe4)

3. When selecting CSGMesh3D, the Gizmo struggles for depth, this is especially noticeable when moving the camera (**Fixed**)
![2](https://github.com/user-attachments/assets/aef49421-e374-47e5-a8ce-07c426b9125f)

### Steps to reproduce

1. Open MRP
2. Select the biggest cube (BIGBOX)
3. Move the camera, you will notice artifacts on the cube (fight for depth)
4. Reduce the cube, AABB will not update until we select another node

### Minimal reproduction project (MRP)

[vox.zip](https://github.com/user-attachments/files/16996585/vox.zip)

Contributor guide

Open the contributing guide

Research direction

Open the linked vox.zip minimal reproduction project in Godot and reproduce the CSGMesh3D resize with the scale tool. Start at the CSGMesh3D behavior involved in its AABB and editor gizmo updates; done means resizing BIGBOX immediately updates the blue AABB without selecting another node, while the already-fixed depth issue remains unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, godot
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.