Merged changes in the trunk up to revision 55357.
[blender.git] / source / blender / editors / interface / interface_templates.c
index eeddd8c..afb4410 100644 (file)
@@ -332,6 +332,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");
@@ -367,6 +370,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;
@@ -524,6 +530,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) {
@@ -2464,7 +2473,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);
@@ -2554,7 +2563,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;
 
@@ -2569,7 +2578,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;
@@ -2664,10 +2673,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;
                }