Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager_data.c
| Show First 20 Lines • Show All 571 Lines • ▼ Show 20 Lines | |||||
| uint32_t DRW_object_resource_id_get(Object *UNUSED(ob)) | uint32_t DRW_object_resource_id_get(Object *UNUSED(ob)) | ||||
| { | { | ||||
| DRWResourceHandle handle = DST.ob_handle; | DRWResourceHandle handle = DST.ob_handle; | ||||
| if (handle == 0) { | if (handle == 0) { | ||||
| /* Handle not yet allocated. Return next handle. */ | /* Handle not yet allocated. Return next handle. */ | ||||
| handle = DST.resource_handle; | handle = DST.resource_handle; | ||||
| } | } | ||||
| return handle; | return handle & ~(1 << 31); | ||||
| } | } | ||||
| static DRWResourceHandle drw_resource_handle(DRWShadingGroup *shgroup, | static DRWResourceHandle drw_resource_handle(DRWShadingGroup *shgroup, | ||||
| float (*obmat)[4], | float (*obmat)[4], | ||||
| Object *ob) | Object *ob) | ||||
| { | { | ||||
| if (ob == NULL) { | if (ob == NULL) { | ||||
| if (obmat == NULL) { | if (obmat == NULL) { | ||||
| ▲ Show 20 Lines • Show All 1,480 Lines • Show Last 20 Lines | |||||