diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-04-15 11:00:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-04-15 11:00:11 +0400 |
commit | 34a617e3084708f938e9b41489405c3ca30421f8 (patch) | |
tree | 7db42d7e70c6fe5701d799d410de0813bc02d364 /source/gameengine/Ketsji/KX_GameObject.cpp | |
parent | efb7dd86ff001efe26fba1caef70a87806d138f6 (diff) |
[#7789] 3DS Import , Mesh not correct since Blender 2.44
There is a problem importing 3ds files where I cant find a way to check if the transforms are applied to the vertex locations or not.
Since 2.44 I made the importer assume they were not since you can manually remove transformations, but not reverse.
Nevertheless most 3ds files have the matrix applied, better not give a bad import by default.
Did some research and other 3ds importers (lib3ds for eg), have the same problem and just assume the transformations applied.
3dsMax imports both correctly so there must be a way to tell but I could not link it to the 3ds version or other mesh options.
Added an option to workaround this problem in rare cases where its needed.
- KX_GameObject.cpp & KX_Scene.cpp, clear the dict before removing the reference in case there is a circular reference.
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_GameObject.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp index a399d3b477a..fd9ba93f4b6 100644 --- a/source/gameengine/Ketsji/KX_GameObject.cpp +++ b/source/gameengine/Ketsji/KX_GameObject.cpp @@ -143,6 +143,7 @@ KX_GameObject::~KX_GameObject() } if (m_attrlist) { + PyDict_Clear(m_attrlist); /* incase of circular refs or other weired cases */ Py_DECREF(m_attrlist); } } |