Fix T77913: Incorrect handling of negative-scale bit in DRWResourceHandle

Reviewers: fclem

Differential Revision: https://developer.blender.org/D8103
This commit is contained in:
2020-06-24 14:42:46 +02:00
parent e59712b7c8
commit 756e664e4f

View File

@@ -577,7 +577,7 @@ uint32_t DRW_object_resource_id_get(Object *UNUSED(ob))
/* Handle not yet allocated. Return next handle. */
handle = DST.resource_handle;
}
return handle;
return handle & ~(1 << 31);
}
static DRWResourceHandle drw_resource_handle(DRWShadingGroup *shgroup,