material name

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

Moderators: jesterKing, stiv

Post Reply
Posts: 0
Joined: Thu Sep 10, 2009 8:06 pm

material name

Post by 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: 0
Joined: Sun Feb 27, 2011 4:12 pm

Post by 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: 0
Joined: Sun Nov 07, 2010 11:30 pm
Location: Hamilton, New Zealand

Post by 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: 0
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Post by 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...

Post Reply