This isn't a problem in 3.0 or master, but I'm porting the spreadsheet
data set region to a tree view and ran into this. This line meant to
check whether the function was empty, but instead it calls the function,
resulting in a std::bad_function_call exception.
Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
- Branch
- fix-tree-view-bad-function-call (branched from master)
- Build Status
Buildable 18821 Build 18821: arc lint + arc unit
Event Timeline
Comment Actions
Actually the function should be called here. It's asking "should this tree item be the active one?", and if so, it activates it. And this is done via a delayed callback because only after reconstruction is complete, we can reliably detect if a state change happened (and correctly call the on_activate() of the item).
But of course, it makes sense to check if it's set first.