Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/interface/interface_templates.c')
-rw-r--r--source/blender/editors/interface/interface_templates.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index 5244c9983cf..8969e2b69ae 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -42,16 +42,6 @@
#include "UI_interface.h"
#include "UI_resources.h"
-static uiBlock *block_free_layout(uiLayout *layout)
-{
- uiBlock *block;
-
- block= uiLayoutBlock(layout);
- uiBlockSetCurLayout(block, uiLayoutFree(layout, 0));
-
- return block;
-}
-
void ui_template_fix_linking()
{
}
@@ -62,7 +52,7 @@ void uiTemplateHeader(uiLayout *layout, bContext *C)
{
uiBlock *block;
- block= block_free_layout(layout);
+ block= uiLayoutFreeBlock(layout);
ED_area_header_standardbuttons(C, block, 0);
}
@@ -240,7 +230,7 @@ void uiTemplateHeaderID(uiLayout *layout, bContext *C, PointerRNA *ptr, char *pr
BLI_strncpy(template->unlinkop, unlinkop, sizeof(template->unlinkop));
}
- block= block_free_layout(layout);
+ block= uiLayoutFreeBlock(layout);
template_header_ID(C, block, template);
MEM_freeN(template);