Page MenuHome

Initial Refactor of code preserving caches during undo.
AbandonedPublic

Authored by Bastien Montagne (mont29) on Jul 2 2020, 5:45 PM.

Details

Summary

This is a proof od concept, it only implements new system for bSound
data-block as test subject.

Diff Detail

Repository
rB Blender
Branch
undo-caches
Build Status
Buildable 8808
Build 8808: arc lint + arc unit

Event Timeline

Bastien Montagne (mont29) requested review of this revision.Jul 2 2020, 5:45 PM
Bastien Montagne (mont29) created this revision.
  • Cleanup for previous commit.
Bastien Montagne (mont29) planned changes to this revision.Jul 2 2020, 5:53 PM

Actually cache key should be defined in BKE, not BLO anymore

Seems fine overall.

source/blender/blenkernel/intern/sound.c
122–128

Maybe the key can be constructed in the callback, to simplify the code here?

function_callback(id, offsetof(bSound, waveform), &sound->waveform, user_data);
  • Move cache key struct (and its hashing and compare utils) to BKE_idtype.

Committed, thanks.