On Dec 7, 2007 1:32 PM, Maximilian Albert <Anhalter42@...173...> wrote:
Hi all,
I've asked this before but unfortunately I haven't been able to fix it yet. My rewritten 3D box class inherits from SPGroup. Each box has six children of type Box3DSide, each of which is inherited from SPPolygon. So far so good. The problem is that I can't figure out what functions I need to call in sp_3dbox_update so that the boxes are correctly updated on screen during handle dragging (but without writing to repr for efficiency).
Note that when you drag a node, repr is not updated but display is, for the same efficiency reason. So you can borrow it from there. The function you need is object_update in nodepath.cpp: it creates a new spcurve and manually sets it on the SPShape of the object, then issues requestModified. That's what you need to do if you want to update display while bypassing the repr update.