Skip to content

Commit 6048d72

Browse files
committed
Dirty hack to prevent edge case of making thread-unsafe stuff even thread-unsaferer unnecessarily
1 parent e2cb511 commit 6048d72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scene/main/canvas_item.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ void CanvasItem::_notify_transform(CanvasItem *p_node) {
10821082
if (p_node->notify_transform && !p_node->xform_change.in_list()) {
10831083
if (!p_node->block_transform_notify) {
10841084
if (p_node->is_inside_tree()) {
1085-
if (is_accessible_from_caller_thread()) {
1085+
if (Thread::is_main_thread()) {
10861086
get_tree()->xform_change_list.add(&p_node->xform_change);
10871087
} else {
10881088
// Should be rare, but still needs to be handled.

0 commit comments

Comments
 (0)