material name

User-contributed CVS development builds. Please test and give feedback!

Moderators: jesterKing, stiv

Posts: 1
Joined: Thu Sep 10, 2009 8:06 pm

material name

Postby Pyrogxpilot » Thu Sep 10, 2009 8:10 pm

Just a suggestion in the new 2.5 release could something be done about the severe limit on material name like:make it like 128 charaters

Posts: 3
Joined: Sun Feb 27, 2011 4:12 pm

Postby Dusho » Sun Aug 07, 2011 12:36 pm

it was said that 2.5x release has much cleaner code and some restriction can be lifted..
after checking some source code, I don't think so (DNA_ID.h) :

Code: Select all

#define MAX_ID_NAME   24

/* There's a nasty circular dependency here.... void* to the rescue! I
 * really wonder why this is needed. */
typedef struct ID {
   void *next, *prev;
   struct ID *newid;
   struct Library *lib;
   char name[24];
   short us;
    * LIB_... flags report on status of the datablock this ID belongs
    * to.
   short flag;
   int icon_id;
   IDProperty *properties;
} ID;

why to have MAX_ID_NAME then.. and it looks like this all over the code, hardcoded name lengths to [24] or [32].
Is there someone who has some general knowledge about Blender code and clean it up? It would be much easier to set material name limit to say 64 or 128.

Posts: 544
Joined: Sun Nov 07, 2010 11:30 pm
Location: Hamilton, New Zealand

Postby ldo » Sat Feb 25, 2012 3:41 am

Longer names support was added back on January 11. It should be in the current 2.62 release.

Posts: 894
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Postby CoDEmanX » Wed May 02, 2012 12:29 pm

2.63 has a general limit to 64 bytes / 63 characters, long enough imo:['abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.']
I'm sitting, waiting, wishing, building Blender in superstition...

Return to “Testing Builds”

Who is online

Users browsing this forum: No registered users and 1 guest