Don't draw bones if it's not visible
This commit is contained in:
parent
d55351ed20
commit
6a28bfe09c
1 changed files with 3 additions and 0 deletions
|
@ -2689,6 +2689,9 @@ void CanvasItemEditor::_draw_bones() {
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Node2D *from_node = Object::cast_to<Node2D>(ObjectDB::get_instance(E->key().from));
|
Node2D *from_node = Object::cast_to<Node2D>(ObjectDB::get_instance(E->key().from));
|
||||||
|
if (!from_node->is_visible_in_tree())
|
||||||
|
continue;
|
||||||
|
|
||||||
Vector<Color> colors;
|
Vector<Color> colors;
|
||||||
if (from_node->has_meta("_edit_ik_")) {
|
if (from_node->has_meta("_edit_ik_")) {
|
||||||
colors.push_back(bone_ik_color);
|
colors.push_back(bone_ik_color);
|
||||||
|
|
Loading…
Reference in a new issue