summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2022-11-18 16:12:48 -0800
committerclayjohn <claynjohn@gmail.com>2022-11-18 23:36:40 -0800
commit0e5a98cdd833dbaeefaf3c640b0f1e3ef535e523 (patch)
treed4b0fd5de8c78de9c89cf7e1288f77a7c2bceaf2 /scene/2d
parentc9c09ad608754a9025ca227358fca5a02553f2cb (diff)
Fix drawing of 2D skeletons in the RD renderer.
Also clean up skeleton code in preparation for adding them to GLES3 Properly update Mesh2D AABBs when skeleton is updated
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/polygon_2d.cpp2
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 {