Don't draw bones if it's not visible

This commit is contained in:
volzhs 2018-05-25 13:01:15 +09:00
parent d55351ed20
commit 6a28bfe09c

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);