mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Update deferred calls to use Callables
This commit is contained in:
@@ -150,13 +150,13 @@ float CSGShape3D::get_snap() const {
|
||||
|
||||
void CSGShape3D::_make_dirty(bool p_parent_removing) {
|
||||
if ((p_parent_removing || is_root_shape()) && !dirty) {
|
||||
call_deferred(SNAME("_update_shape")); // Must be deferred; otherwise, is_root_shape() will use the previous parent
|
||||
callable_mp(this, &CSGShape3D::_update_shape).call_deferred(); // Must be deferred; otherwise, is_root_shape() will use the previous parent.
|
||||
}
|
||||
|
||||
if (!is_root_shape()) {
|
||||
parent_shape->_make_dirty();
|
||||
} else if (!dirty) {
|
||||
call_deferred(SNAME("_update_shape"));
|
||||
callable_mp(this, &CSGShape3D::_update_shape).call_deferred();
|
||||
}
|
||||
|
||||
dirty = true;
|
||||
|
||||
Reference in New Issue
Block a user