mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
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:
parent
71699e08c9
commit
649c87b957
2 changed files with 6 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue