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

Reviewers: fclem

Differential Revision: https://developer.blender.org/D8103
This commit is contained in:
Jacques Lucke 2020-06-24 14:42:46 +02:00
parent e59712b7c8
commit 756e664e4f
Notes: blender-bot 2023-02-14 07:08:26 +01:00
Referenced by issue #77913, Viewport Shading Color affects/crashes Blender when using Particle System
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 1 additions and 1 deletions

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,