Merge pull request #58937 from hoontee/master

Add SNAME macro optimization missed during rebase of #40814
This commit is contained in:
Rémi Verschelde 2022-03-09 20:35:47 +01:00 committed by GitHub
commit 3a7dd7f323
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,7 +138,7 @@ float CSGShape3D::get_snap() const {
void CSGShape3D::_make_dirty(bool p_parent_removing) {
if ((p_parent_removing || is_root_shape()) && !dirty) {
call_deferred("_update_shape"); // Must be deferred; otherwise, is_root_shape() will use the previous parent
call_deferred(SNAME("_update_shape")); // Must be deferred; otherwise, is_root_shape() will use the previous parent
}
if (!is_root_shape()) {