Added a more minimal test to avoid crash in #20677 but I dont think this is the cause

This commit is contained in:
Juan Linietsky 2018-08-24 10:15:16 -03:00
parent c6e3394d55
commit cf217627c7

View file

@ -1173,8 +1173,8 @@ void RasterizerCanvasGLES3::canvas_render_items(Item *p_item_list, int p_z, cons
{
//skeleton handling
if (ci->skeleton.is_valid()) {
skeleton = storage->skeleton_owner.getornull(ci->skeleton);
if (ci->skeleton.is_valid() && storage->skeleton_owner.owns(ci->skeleton)) {
skeleton = storage->skeleton_owner.get(ci->skeleton);
if (!skeleton->use_2d) {
skeleton = NULL;
} else {