Merge pull request #19157 from volzhs/bone-visibility

Don't draw bones if it's not visible
This commit is contained in:
Gilles Roudière 2018-05-25 09:59:51 +02:00 committed by GitHub
commit e19405b2b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2689,6 +2689,9 @@ void CanvasItemEditor::_draw_bones() {
continue;
Node2D *from_node = Object::cast_to<Node2D>(ObjectDB::get_instance(E->key().from));
if (!from_node->is_visible_in_tree())
continue;
Vector<Color> colors;
if (from_node->has_meta("_edit_ik_")) {
colors.push_back(bone_ik_color);