Hey. While in the course of writing a custom draw() method for my dynamic field, I couldn't help but notice that the drawing method was being called for different cases with two different dag paths. In one case, the MDagPath passed to the function is the world path (i.e., "") and in the other case the dag path is of my field node itself. In fact, draw() only gets called with the dag path referring to my node whenever I click on the node in the viewport. For every other case, such as when redrawing is forced by dragging a window over the viewport, the draw() method is called with the world dag path.
Is there any specific reason for this? And is there anything I should be doing to account for it? I kind of need to have the right dag path for my drawing...
Thanks