[Bf-blender-cvs] [a0780ad6253] master: Fix: Exception in tree view code in new case
Hans Goudey
noreply at git.blender.org
Fri Nov 19 23:28:17 CET 2021
Commit: a0780ad6253fcb9768dd3184351998effef6d178
Author: Hans Goudey
Date: Fri Nov 19 17:28:08 2021 -0500
Branches: master
https://developer.blender.org/rBa0780ad6253fcb9768dd3184351998effef6d178
Fix: Exception in tree view code in new case
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 needs to
whether the function is empty before calling it.
Differential Revision: https://developer.blender.org/D13197
===================================================================
M source/blender/editors/interface/tree_view.cc
===================================================================
diff --git a/source/blender/editors/interface/tree_view.cc b/source/blender/editors/interface/tree_view.cc
index fcc878c440c..fabb2c2187a 100644
--- a/source/blender/editors/interface/tree_view.cc
+++ b/source/blender/editors/interface/tree_view.cc
@@ -546,7 +546,7 @@ uiButTreeRow *AbstractTreeViewItem::tree_row_button()
void AbstractTreeViewItem::change_state_delayed()
{
- if (is_active_fn_()) {
+ if (is_active_fn_ && is_active_fn_()) {
activate();
}
}
More information about the Bf-blender-cvs
mailing list