NodeData.Init() called very often
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/08/2012 at 07:36, xxxxxxxx wrote:
Hello,
I'm just curious of why NodeData.Init() is called multiple times. I could figure out the following cases that invoke that the method is called:
- Creating a new NodeData instance (includes loading a scene that contains the instance ) : Calls the method 2 to 3 times
- Changing any parameter: Calls it 1 to 2 times
- Deleting the instance: Calls it 1 time
Is this supposed to be? It looks like a heavy overhead to me. I can reproduce this in all versions from R12 to R14.
Thanks in advance,
-Niklas -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/08/2012 at 13:54, xxxxxxxx wrote:
In several cases its because the object is moved to the undo stack and therefore a new one must be created and initialized as well.
Cheers, Sebastian
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/08/2012 at 01:14, xxxxxxxx wrote:
Thank you Sebastian, I understand.
-Nik