More Parent/Child Comments on the Docs

Started by AGP, June 18, 2012, 01:59:38 AM

Previous topic - Next topic

AGP

I wish you would include more comments on what different methods did to an object's children.

Does compileAndStrip() and compile and strip its children? Does enableLazyTransformations() optimize children? Does setCollisionMode() set the collision mode of children? Thanks in advance.

EgonOlsen

None of those. Transformations are affected, nothing else. In that way, enableLazy... somehow affects it, because it makes the child imune to changes of the parent, but that's just the way it's supposed to work and not really related to the fact that parents are being used or not.

AGP


EgonOlsen

No, because i would have add a phrase to almost every method then that says "This doesn't affect parent/child relations". I don't see the need for this. The docs for addParent clearly state:

QuoteDefines an object as a parent of this. this will inherit all transformations from its parent.

That's all there is about it. It doesn't say that any other attributes might be inherited.

AGP

Then perhaps explicitly state that no other attributes are inherited. And I do think that the comment about enableLazyTransformations() is appropriate.

EgonOlsen