Merge pull request #27330 from qarmin/fix_bones_not_showing_after_create

Show bones after creating
This commit is contained in:
Rémi Verschelde 2019-04-05 16:39:55 +02:00 committed by GitHub
commit 945f7f83d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4182,6 +4182,7 @@ void CanvasItemEditor::_popup_callback(int p_op) {
if (!skeleton_show_bones) if (!skeleton_show_bones)
skeleton_menu->get_popup()->activate_item(skeleton_menu->get_popup()->get_item_index(SKELETON_SHOW_BONES)); skeleton_menu->get_popup()->activate_item(skeleton_menu->get_popup()->get_item_index(SKELETON_SHOW_BONES));
} }
_queue_update_bone_list();
viewport->update(); viewport->update();
} break; } break;
@ -4201,6 +4202,7 @@ void CanvasItemEditor::_popup_callback(int p_op) {
if (!skeleton_show_bones) if (!skeleton_show_bones)
skeleton_menu->get_popup()->activate_item(skeleton_menu->get_popup()->get_item_index(SKELETON_SHOW_BONES)); skeleton_menu->get_popup()->activate_item(skeleton_menu->get_popup()->get_item_index(SKELETON_SHOW_BONES));
} }
_queue_update_bone_list();
viewport->update(); viewport->update();
} break; } break;