[Bf-blender-cvs] [babb028b845] modifier-panels-ui: Fix debug mode crash adding and deleting modifier
Hans Goudey
noreply at git.blender.org
Wed Apr 8 17:39:52 CEST 2020
Commit: babb028b84519c65241e9cb2228a1f201b8640c4
Author: Hans Goudey
Date: Wed Apr 8 10:36:19 2020 -0500
Branches: modifier-panels-ui
https://developer.blender.org/rBbabb028b84519c65241e9cb2228a1f201b8640c4
Fix debug mode crash adding and deleting modifier
===================================================================
M source/blender/editors/interface/interface_panel.c
===================================================================
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index d90aa9caf73..e00886c3af7 100644
--- a/source/blender/editors/interface/interface_panel.c
+++ b/source/blender/editors/interface/interface_panel.c
@@ -562,7 +562,7 @@ void UI_list_panel_unique_str(Panel *panel, char *r_name)
snprintf(r_name, LIST_PANEL_UNIQUE_STR_LEN, "%d", panel->runtime.list_index);
}
-static void panel_free_block(struct ARegion *region, struct Panel *panel)
+static void panel_free_block(ARegion *region, Panel *panel)
{
BLI_assert(panel->type);
@@ -577,6 +577,7 @@ static void panel_free_block(struct ARegion *region, struct Panel *panel)
// printf("Removing panel block %s\n", block_name);
BLI_remlink(®ion->uiblocks, block);
UI_block_free(NULL, block);
+ break; /* Only delete one block for this panel. */
}
}
}
More information about the Bf-blender-cvs
mailing list