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.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index f827da6fcc4..5e9a70ea895 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -330,6 +330,9 @@ static const char *template_id_browse_tip(StructRNA *type)
case ID_MA: return N_("Browse Material to be linked");
case ID_TE: return N_("Browse Texture to be linked");
case ID_IM: return N_("Browse Image to be linked");
+#ifdef WITH_FREESTYLE
+ case ID_LS: return N_("Browse Line Style Data to be linked");
+#endif
case ID_LT: return N_("Browse Lattice Data to be linked");
case ID_LA: return N_("Browse Lamp Data to be linked");
case ID_CA: return N_("Browse Camera Data to be linked");
@@ -365,6 +368,9 @@ static const char *template_id_context(StructRNA *type)
case ID_MA: return BLF_I18NCONTEXT_ID_MATERIAL;
case ID_TE: return BLF_I18NCONTEXT_ID_TEXTURE;
case ID_IM: return BLF_I18NCONTEXT_ID_IMAGE;
+#ifdef WITH_FREESTYLE
+ case ID_LS: return BLF_I18NCONTEXT_ID_FREESTYLELINESTYLE;
+#endif
case ID_LT: return BLF_I18NCONTEXT_ID_LATTICE;
case ID_LA: return BLF_I18NCONTEXT_ID_LAMP;
case ID_CA: return BLF_I18NCONTEXT_ID_CAMERA;
@@ -522,6 +528,9 @@ static void template_ID(bContext *C, uiLayout *layout, TemplateID *template, Str
BLF_I18NCONTEXT_ID_BRUSH,
BLF_I18NCONTEXT_ID_PARTICLESETTINGS,
BLF_I18NCONTEXT_ID_GPENCIL,
+#ifdef WITH_FREESTYLE
+ BLF_I18NCONTEXT_ID_FREESTYLELINESTYLE
+#endif
);
if (newop) {
@@ -2445,7 +2454,7 @@ static void uilist_draw_item_default(struct uiList *ui_list, struct bContext *UN
uiItemL(layout, name, icon);
break;
}
-
+
/* free name */
if (namebuf) {
MEM_freeN(namebuf);
@@ -2528,7 +2537,7 @@ void uiTemplateList(uiLayout *layout, bContext *C, const char *listtype_name, co
if (ui_list_type == NULL) {
RNA_warning("List type %s not found", listtype_name);
return;
- }
+ }
draw_item = ui_list_type->draw_item ? ui_list_type->draw_item : uilist_draw_item_default;
@@ -2543,7 +2552,7 @@ void uiTemplateList(uiLayout *layout, bContext *C, const char *listtype_name, co
ui_list = MEM_callocN(sizeof(uiList), __func__);
BLI_strncpy(ui_list->list_id, ui_list_id, sizeof(ui_list->list_id));
BLI_addtail(&ar->ui_lists, ui_list);
- }
+ }
/* Because we can't actually pass type across save&load... */
ui_list->type = ui_list_type;
@@ -2637,10 +2646,10 @@ void uiTemplateList(uiLayout *layout, bContext *C, const char *listtype_name, co
if (icon == ICON_DOT)
icon = ICON_NONE;
draw_item(ui_list, C, row, dataptr, &itemptr, icon, active_dataptr, active_propname, i);
- }
+ }
i++;
- }
+}
RNA_PROP_END;
}