Fix for bug #4192: game engine armatures that are dynamically added
but don't have an action got the pose of already added armatures, even though they're not related. This also fixes an issue where the armature in Blender would end up in the pose from the game after ESC, removes unneeded copies made during armature evaluation, and also solves the constraint copying hack.
This commit is contained in:
@@ -139,7 +139,7 @@ GPG_Application::GPG_Application(GHOST_ISystem* system)
|
||||
GPG_Application::~GPG_Application(void)
|
||||
{
|
||||
if(m_pyGlobalDictString) {
|
||||
delete m_pyGlobalDictString;
|
||||
delete [] m_pyGlobalDictString;
|
||||
m_pyGlobalDictString = 0;
|
||||
m_pyGlobalDictString_Length = 0;
|
||||
}
|
||||
@@ -729,7 +729,7 @@ void GPG_Application::stopEngine()
|
||||
// m_pyGlobalDictString so we can restore after python has stopped
|
||||
// and started between .blend file loads.
|
||||
if(m_pyGlobalDictString) {
|
||||
delete m_pyGlobalDictString;
|
||||
delete [] m_pyGlobalDictString;
|
||||
m_pyGlobalDictString = 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user