Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/overlay_edit_uv.c
| Show First 20 Lines • Show All 397 Lines • ▼ Show 20 Lines | if (pd->edit_uv.do_mask_overlay) { | ||||
| DRW_shgroup_call_obmat(grp, geom, NULL); | DRW_shgroup_call_obmat(grp, geom, NULL); | ||||
| } | } | ||||
| /* HACK: When editing objects that share the same mesh we should only draw the | /* HACK: When editing objects that share the same mesh we should only draw the | ||||
| * first one in the order that is used during uv editing. We can only trust that the first object | * first one in the order that is used during uv editing. We can only trust that the first object | ||||
| * has the correct batches with the correct selection state. See T83187. */ | * has the correct batches with the correct selection state. See T83187. */ | ||||
| if (pd->edit_uv.do_uv_overlay || pd->edit_uv.do_uv_shadow_overlay) { | if (pd->edit_uv.do_uv_overlay || pd->edit_uv.do_uv_shadow_overlay) { | ||||
| uint objects_len = 0; | uint objects_len = 0; | ||||
| Object **objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data_with_uvs( | Object **objects = BKE_view_layer_array_from_objects_in_mode_unique_data( | ||||
jbakker: Shouldn't it also check if the object is selected? | |||||
jbakkerUnsubmitted Done Inline ActionsWe checked together that this can never be the case. jbakker: We checked together that this can never be the case. | |||||
| draw_ctx->view_layer, NULL, &objects_len); | draw_ctx->view_layer, NULL, &objects_len, draw_ctx->object_mode); | ||||
| for (uint ob_index = 0; ob_index < objects_len; ob_index++) { | for (uint ob_index = 0; ob_index < objects_len; ob_index++) { | ||||
| Object *object_eval = DEG_get_evaluated_object(draw_ctx->depsgraph, objects[ob_index]); | Object *object_eval = DEG_get_evaluated_object(draw_ctx->depsgraph, objects[ob_index]); | ||||
| DRW_mesh_batch_cache_validate((Mesh *)object_eval->data); | DRW_mesh_batch_cache_validate((Mesh *)object_eval->data); | ||||
| overlay_edit_uv_cache_populate(vedata, object_eval); | overlay_edit_uv_cache_populate(vedata, object_eval); | ||||
| } | } | ||||
| MEM_freeN(objects); | MEM_freeN(objects); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 162 Lines • Show Last 20 Lines | |||||
Shouldn't it also check if the object is selected?