Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node name ist limited #131

Closed
kimkulling opened this issue Sep 28, 2013 · 3 comments
Closed

node name ist limited #131

kimkulling opened this issue Sep 28, 2013 · 3 comments

Comments

@kimkulling
Copy link
Member

hi,
i found that blender files with node names greater than 22 characters seems to be cut. This ist not documented.
_aiNode->mName.C_Str() cuts after 22 characters
tsky

see: https://sourceforge.net/p/assimp/bugs/79/

@acgessler
Copy link
Member

Do we have a file to reproduce?

@kimkulling
Copy link
Member Author

Unfortunately no, but I have just asked for one :-).

Kimmi

@lived3d
Copy link

lived3d commented Nov 9, 2014

Hi,

I'm also having this issue. File: http://www.lived3d.com/downloads/DebugObjects.blend The material name on the object gets truncated to 22 characters. From "\CoreData\Materials\Debug.lua" to "\CoreData\Materials\De"

I found this change fixes the issue for me though (I think, I'm pretty new to C++):

diff --git a/code/BlenderScene.h b/code/BlenderScene.h
index 24f5007..e8fc1ee 100644
--- a/code/BlenderScene.h
+++ b/code/BlenderScene.h
@@ -101,7 +101,7 @@ struct Image;
// ------------------------------------------------------
struct ID : ElemBase {

.- char name[24] WARN;
.+ char name[1024] WARN;
short flag;
};

kimkulling added a commit that referenced this issue Aug 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants