Make CSG shape dirty after changing Snap, update doc

Update doc to mention that Snap only takes effect at the top level.

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
31 2024-06-16 13:53:55 -07:00
parent 71699e08c9
commit 649c87b957
2 changed files with 6 additions and 1 deletions

View file

@ -141,7 +141,12 @@ bool CSGShape3D::is_root_shape() const {
}
void CSGShape3D::set_snap(float p_snap) {
if (snap == p_snap) {
return;
}
snap = p_snap;
_make_dirty();
}
float CSGShape3D::get_snap() const {