diff options
author | volzhs <volzhs@gmail.com> | 2018-05-25 13:01:15 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2018-05-25 13:01:15 +0900 |
commit | 6a28bfe09c6c9cffc2bee651b2047852a23ec63d (patch) | |
tree | 58a5c8b280ed4fbb05e02a09d40f8143c6046697 /editor/plugins/canvas_item_editor_plugin.cpp | |
parent | d55351ed20def8c84e36435ce8c85a1701b73ffd (diff) |
Don't draw bones if it's not visible
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 488f687515..ca5aa7039d 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -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); |