|
From: James W. W. <ja...@fr...> - 2005-02-17 20:15:53
|
Roger Holmes <rog...@mi...> wrote: >As we never actually create any objects of class 'Light', only >ambient, directional, spot and point lights, >would it be OK to redefine kQ3ShapeTypeLight to be something like >'lghT' with a capital T or 'Lght' ? I have some code that uses Q3Group_GetFirstPositionOfType and Q3Group_GetNextPositionOfType with kQ3ShapeTypeLight, and that will break if you redefine kQ3ShapeTypeLight. Here's a possibility: In e3fformat_3dmf_bin_readobject, add a special case, that checks whether the object type is 'lght' and changes it to something else like 'lghd'. -- James W. Walker, ScriptPerfection Enterprises, Inc. <http://www.write-brain.com/> |