RNA: Fixed incorrect depsgraph tagging for Object.color and pass_index

These options do not influence the transform, but do (potentiall) influence
the shading.
This commit is contained in:
Sybren A. Stüvel 2020-04-14 16:08:49 +02:00
parent 7bfb7450a2
commit 00466e756e
Notes: blender-bot 2023-02-14 06:00:49 +01:00
Referenced by commit 6c9a882340, Fix T75964: changing object's viewport display color does not update
Referenced by issue #75964, changing an object's viewport display color does not auto update in viewport render mode.
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ static void rna_Object_internal_update_draw(Main *UNUSED(bmain),
Scene *UNUSED(scene),
PointerRNA *ptr)
{
DEG_id_tag_update(ptr->owner_id, ID_RECALC_TRANSFORM);
DEG_id_tag_update(ptr->owner_id, ID_RECALC_SHADING);
WM_main_add_notifier(NC_OBJECT | ND_DRAW, ptr->owner_id);
}