diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-11-19 10:25:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-19 10:25:31 +0100 |
commit | 895428c8058ce97abb02a6a3500e463f72a4f9c9 (patch) | |
tree | 25aca194d09904daeafb045a1b33cc11e09b597b /scene | |
parent | 52c51563fd7af9507a1d0dcc3e06eac4a70cd73b (diff) | |
parent | 0e5a98cdd833dbaeefaf3c640b0f1e3ef535e523 (diff) |
Merge pull request #68863 from clayjohn/RD-2D-skeleton
Fix drawing of 2D skeletons in the RD renderer.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/2d/polygon_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/polygon_2d.cpp b/scene/2d/polygon_2d.cpp index 5e77902977..2c825e8f7b 100644 --- a/scene/2d/polygon_2d.cpp +++ b/scene/2d/polygon_2d.cpp @@ -114,7 +114,7 @@ void Polygon2D::_notification(int p_what) { ObjectID new_skeleton_id; - if (skeleton_node) { + if (skeleton_node && !invert && bone_weights.size()) { RS::get_singleton()->canvas_item_attach_skeleton(get_canvas_item(), skeleton_node->get_skeleton()); new_skeleton_id = skeleton_node->get_instance_id(); } else { |