mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #84914 from mihe/revert-84856
Revert "Fix transform notification not getting sent out for RigidBody2D"
This commit is contained in:
commit
d5217b68db
@ -891,13 +891,15 @@ void CanvasItem::_notify_transform(CanvasItem *p_node) {
|
||||
* notification anyway).
|
||||
*/
|
||||
|
||||
if (p_node->block_transform_notify || p_node->_is_global_invalid()) {
|
||||
if (/*p_node->xform_change.in_list() &&*/ p_node->_is_global_invalid()) {
|
||||
return; //nothing to do
|
||||
}
|
||||
|
||||
p_node->_set_global_invalid(true);
|
||||
|
||||
if (p_node->notify_transform && !p_node->xform_change.in_list() && p_node->is_inside_tree()) {
|
||||
if (p_node->notify_transform && !p_node->xform_change.in_list()) {
|
||||
if (!p_node->block_transform_notify) {
|
||||
if (p_node->is_inside_tree()) {
|
||||
if (is_accessible_from_caller_thread()) {
|
||||
get_tree()->xform_change_list.add(&p_node->xform_change);
|
||||
} else {
|
||||
@ -905,6 +907,8 @@ void CanvasItem::_notify_transform(CanvasItem *p_node) {
|
||||
MessageQueue::get_singleton()->push_callable(callable_mp(p_node, &CanvasItem::_notify_transform_deferred));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (CanvasItem *ci : p_node->children_items) {
|
||||
if (ci->top_level) {
|
||||
|
Loading…
Reference in New Issue
Block a user