Depsgraph/Python: callbacks and properties to detect datablock changes
[blender.git] / source / blender / editors / object / object_edit.c
index 04272b48d51e79d0965d7fad1c555ee0fe431bdd..d34732250951a4daf207fee25d06b90db15012f7 100644 (file)
@@ -145,6 +145,7 @@ static int object_hide_view_clear_exec(bContext *C, wmOperator *UNUSED(op))
                }
        }
        if (changed) {
+               DAG_id_type_tag(bmain, ID_OB);
                DAG_scene_sort(bmain, scene);
                WM_event_add_notifier(C, NC_SCENE|ND_OB_SELECT, scene);
        }
@@ -197,6 +198,7 @@ static int object_hide_view_set_exec(bContext *C, wmOperator *op)
        CTX_DATA_END;
 
        if (changed) {
+               DAG_id_type_tag(bmain, ID_OB);
                DAG_scene_sort(bmain, scene);
                
                WM_event_add_notifier(C, NC_SCENE|ND_OB_SELECT, CTX_data_scene(C));