On 12/07/2014 at 18:07, xxxxxxxx wrote:
I tracked an annoying bug down to a simple example that, hopefully someone can help me with.
I'm setting a global variable to an object like this with a button:
gl_active_rig = doc.GetActiveObject()
Then, I physically move the object in the viewport.
Then I press another button that prints out the position by doing this:
print gl_active_rig.GetMg().off
Okay, it works fine. It prints the correct location.
Now press undo, and the objects jumps back to it previous location.
Press the button to print the location again and it doesn't print the 'undone' location.
It is still printing the moved location.
If I click on the object in the viewport, and then press the button to display the location again, it prints the 'undone' location properly.
What is going on?