mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 21:52:51 +00:00
Merge pull request #19157 from volzhs/bone-visibility
Don't draw bones if it's not visible
This commit is contained in:
commit
e19405b2b4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user