diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index ebc0fae744..e27dbd676a 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -483,7 +483,7 @@ class Actor(PandaObject, NodePath): return controls[0].getPlayRate() def setPlayRate(self, rate, animName, partName=None): - """getPlayRate(self, float, string, string=None) + """setPlayRate(self, float, string, string=None) Set the play rate of given anim for a given part. If no part is given, set for all parts in dictionary. @@ -508,7 +508,7 @@ class Actor(PandaObject, NodePath): return None animControl = controls[0] - return (animControl.getNumFrames() / animControl.getFrameRate()) + return animControl.getNumFrames() / animControl.getFrameRate() def getNumFrames(self, animName=None, partName=None): """ getNumFrames(animName, partName) diff --git a/direct/src/distributed/ClientRepository.py b/direct/src/distributed/ClientRepository.py index 7dbb9a404f..f879a4de17 100644 --- a/direct/src/distributed/ClientRepository.py +++ b/direct/src/distributed/ClientRepository.py @@ -78,7 +78,6 @@ class ClientRepository(ConnectionRepository.ConnectionRepository): # List the cdc in the number and name dictionaries self.number2cdc[dcClass.getNumber()]=clientDistClass self.name2cdc[dcClass.getName()]=clientDistClass - return None def handleGenerateWithRequired(self, di): # Get the class Id @@ -89,7 +88,6 @@ class ClientRepository(ConnectionRepository.ConnectionRepository): cdc = self.number2cdc[classId] # Create a new distributed object, and put it in the dictionary distObj = self.generateWithRequiredFields(cdc, doId, di) - return None def handleGenerateWithRequiredOther(self, di): # Get the class Id @@ -100,7 +98,6 @@ class ClientRepository(ConnectionRepository.ConnectionRepository): cdc = self.number2cdc[classId] # Create a new distributed object, and put it in the dictionary distObj = self.generateWithRequiredOtherFields(cdc, doId, di) - return None def handleQuietZoneGenerateWithRequired(self, di): # Special handler for quiet zone generates -- we need to filter @@ -115,7 +112,6 @@ class ClientRepository(ConnectionRepository.ConnectionRepository): if cdc.constructor.neverDisable: # Create a new distributed object, and put it in the dictionary distObj = self.generateWithRequiredFields(cdc, doId, di) - return None def handleQuietZoneGenerateWithRequiredOther(self, di): # Special handler for quiet zone generates -- we need to filter @@ -241,7 +237,6 @@ class ClientRepository(ConnectionRepository.ConnectionRepository): ClientRepository.notify.warning("Disable failed. DistObj " + str(doId) + " is not in dictionary") - return None def handleDelete(self, di): # Get the DO Id @@ -282,7 +277,6 @@ class ClientRepository(ConnectionRepository.ConnectionRepository): else: ClientRepository.notify.warning( "Asked to delete non-existent DistObj " + str(doId)) - return None def handleUpdateField(self, di): # Get the DO Id @@ -300,7 +294,6 @@ class ClientRepository(ConnectionRepository.ConnectionRepository): else: ClientRepository.notify.warning( "Asked to update non-existent DistObj " + str(doId)) - return None def handleGoGetLost(self, di): # The server told us it's about to drop the connection on us. @@ -347,7 +340,6 @@ class ClientRepository(ConnectionRepository.ConnectionRepository): currentLoginStateName + " game state: " + currentGameStateName) - return None def sendSetShardMsg(self, shardId): datagram = Datagram() @@ -357,7 +349,6 @@ class ClientRepository(ConnectionRepository.ConnectionRepository): datagram.addUint32(shardId) # send the message self.send(datagram) - return None def sendSetZoneMsg(self, zoneId, visibleZoneList=None): datagram = Datagram() diff --git a/direct/src/showbase/Loader.py b/direct/src/showbase/Loader.py index 80fa7ff6ac..736771784f 100644 --- a/direct/src/showbase/Loader.py +++ b/direct/src/showbase/Loader.py @@ -67,9 +67,7 @@ class Loader: times before parenting each instance somewhere, or when you want to load a model and immediately set a transform on it. But also consider loadModelCopy(). - """ - assert(Loader.notify.debug("Loading model once: %s under %s" % (modelPath, underNode))) if phaseChecker: phaseChecker(modelPath) @@ -91,7 +89,7 @@ class Loader: phaseChecker(modelPath) node = ModelPool.loadModel(modelPath) if (node != None): - return (NodePath(node.copySubgraph())) + return NodePath(node.copySubgraph()) else: return None diff --git a/panda/src/audiotraits/milesAudioSound.cxx b/panda/src/audiotraits/milesAudioSound.cxx index 668fd3c7ad..26a4bea251 100644 --- a/panda/src/audiotraits/milesAudioSound.cxx +++ b/panda/src/audiotraits/milesAudioSound.cxx @@ -55,7 +55,6 @@ namespace { audio_debug("MilesAudioSound "< - +#include "pandabase.h" #include "partGroup.h" - #include "pvector.h" //////////////////////////////////////////////////////////////////// @@ -40,7 +38,7 @@ #define TYPE PartGroup * #define NAME vector_PartGroupStar -#include +#include "vector_src.h" // Tell GCC that we'll take care of the instantiation explicitly here. #ifdef __GNUC__ diff --git a/panda/src/display/graphicsWindowInputDevice.h b/panda/src/display/graphicsWindowInputDevice.h index 1f1589097a..e34adbd50c 100644 --- a/panda/src/display/graphicsWindowInputDevice.h +++ b/panda/src/display/graphicsWindowInputDevice.h @@ -96,7 +96,7 @@ private: #define TYPE GraphicsWindowInputDevice #define NAME vector_GraphicsWindowInputDevice -#include +#include "vector_src.h" // Tell GCC that we'll take care of the instantiation explicitly here. #ifdef __GNUC__ diff --git a/panda/src/egg/eggMorphList.h b/panda/src/egg/eggMorphList.h index 200ba46a53..19ff1e4ee5 100644 --- a/panda/src/egg/eggMorphList.h +++ b/panda/src/egg/eggMorphList.h @@ -19,7 +19,7 @@ #ifndef EGGMORPHLIST_H #define EGGMORPHLIST_H -#include +#include "pandabase.h" #include "eggMorph.h" @@ -73,19 +73,19 @@ private: #define EXPTP EXPTP_PANDAEGG #define TYPE LVector3d #define NAME vector_LVector3d -#include +#include "vector_src.h" #define EXPCL EXPCL_PANDAEGG #define EXPTP EXPTP_PANDAEGG #define TYPE LVector2d #define NAME vector_LVector2d -#include +#include "vector_src.h" #define EXPCL EXPCL_PANDAEGG #define EXPTP EXPTP_PANDAEGG #define TYPE LVector4f #define NAME vector_LVector4f -#include +#include "vector_src.h" // Now export each EggMorphList. diff --git a/panda/src/egg/vector_PT_EggMaterial.h b/panda/src/egg/vector_PT_EggMaterial.h index 14b480fa59..ae6ef7b545 100644 --- a/panda/src/egg/vector_PT_EggMaterial.h +++ b/panda/src/egg/vector_PT_EggMaterial.h @@ -19,7 +19,7 @@ #ifndef VECTOR_PT_EGGMATERIAL_H #define VECTOR_PT_EGGMATERIAL_H -#include +#include "pandabase.h" #include "eggMaterial.h" #include "pt_EggMaterial.h" @@ -40,7 +40,7 @@ #define TYPE PT_EggMaterial #define NAME vector_PT_EggMaterial -#include +#include "vector_src.h" // Tell GCC that we'll take care of the instantiation explicitly here. #ifdef __GNUC__ diff --git a/panda/src/egg/vector_PT_EggTexture.h b/panda/src/egg/vector_PT_EggTexture.h index a00286565a..fc3ca37143 100644 --- a/panda/src/egg/vector_PT_EggTexture.h +++ b/panda/src/egg/vector_PT_EggTexture.h @@ -19,7 +19,7 @@ #ifndef VECTOR_PT_EGGTEXTURE_H #define VECTOR_PT_EGGTEXTURE_H -#include +#include "pandabase.h" #include "eggTexture.h" #include "pt_EggTexture.h" @@ -40,7 +40,7 @@ #define TYPE PT_EggTexture #define NAME vector_PT_EggTexture -#include +#include "vector_src.h" // Tell GCC that we'll take care of the instantiation explicitly here. #ifdef __GNUC__ diff --git a/panda/src/egg/vector_PT_EggVertex.h b/panda/src/egg/vector_PT_EggVertex.h index cfd1b9cdfb..79b3d94149 100644 --- a/panda/src/egg/vector_PT_EggVertex.h +++ b/panda/src/egg/vector_PT_EggVertex.h @@ -19,7 +19,7 @@ #ifndef VECTOR_PT_EGGVERTEX_H #define VECTOR_PT_EGGVERTEX_H -#include +#include "pandabase.h" #include "eggVertex.h" #include "pt_EggVertex.h" @@ -40,7 +40,7 @@ #define TYPE PT_EggVertex #define NAME vector_PT_EggVertex -#include +#include "vector_src.h" // Tell GCC that we'll take care of the instantiation explicitly here. #ifdef __GNUC__ diff --git a/panda/src/express/vector_uchar.h b/panda/src/express/vector_uchar.h index eb254a8bf7..0afb4e9938 100644 --- a/panda/src/express/vector_uchar.h +++ b/panda/src/express/vector_uchar.h @@ -19,7 +19,7 @@ #ifndef VECTOR_UCHAR_H #define VECTOR_UCHAR_H -#include +#include "pandabase.h" #include "pvector.h" @@ -37,7 +37,7 @@ #define TYPE unsigned char #define NAME vector_uchar -#include +#include "vector_src.h" // Tell GCC that we'll take care of the instantiation explicitly here. #ifdef __GNUC__ diff --git a/panda/src/gobj/LOD.h b/panda/src/gobj/LOD.h index 7b92c1a4e6..c8a80feec3 100644 --- a/panda/src/gobj/LOD.h +++ b/panda/src/gobj/LOD.h @@ -73,7 +73,7 @@ protected: #define TYPE LODSwitch #define NAME LODSwitchVector -#include +#include "vector_src.h" //////////////////////////////////////////////////////////////////// // Class : LOD diff --git a/panda/src/linmath/cmath.h b/panda/src/linmath/cmath.h index 4e9ab2a148..5417437b50 100644 --- a/panda/src/linmath/cmath.h +++ b/panda/src/linmath/cmath.h @@ -19,7 +19,7 @@ #ifndef CMATH_H #define CMATH_H -#include +#include "pandabase.h" #include diff --git a/panda/src/linmath/lrotation.h b/panda/src/linmath/lrotation.h index f4c5959b9c..568ca9798c 100644 --- a/panda/src/linmath/lrotation.h +++ b/panda/src/linmath/lrotation.h @@ -19,11 +19,11 @@ #ifndef __LROTATION_H__ #define __LROTATION_H__ -#include +#include "pandabase.h" #include "lquaternion.h" #include "cmath.h" -#include +#include "notify.h" #include "fltnames.h" #include "lrotation_src.h" diff --git a/panda/src/linmath/luse.h b/panda/src/linmath/luse.h index 3bbe238d58..cafceaa576 100644 --- a/panda/src/linmath/luse.h +++ b/panda/src/linmath/luse.h @@ -62,7 +62,7 @@ // //////////////////////////////////////////////////////////////////// -#include +#include "pandabase.h" #include "lvec2_ops.h" #include "lvec3_ops.h" diff --git a/panda/src/linmath/lvecBase2_src.I b/panda/src/linmath/lvecBase2_src.I index 130b8eb9a8..e17389675c 100644 --- a/panda/src/linmath/lvecBase2_src.I +++ b/panda/src/linmath/lvecBase2_src.I @@ -218,6 +218,37 @@ set_y(FLOATTYPE value) { _v.v._1 = value; } +//////////////////////////////////////////////////////////////////// +// Function: LVecBase2::add_to_cell +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE_LINMATH void FLOATNAME(LVecBase2):: +add_to_cell(int i, FLOATTYPE value) { + nassertv(i >= 0 && i < 2); + _v.data[i] = value; +} + +//////////////////////////////////////////////////////////////////// +// Function: LVecBase2::add_x +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE_LINMATH void FLOATNAME(LVecBase2):: +add_x(FLOATTYPE value) { + _v.v._0 = value; +} + +//////////////////////////////////////////////////////////////////// +// Function: LVecBase2::add_y +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE_LINMATH void FLOATNAME(LVecBase2):: +add_y(FLOATTYPE value) { + _v.v._1 = value; +} + //////////////////////////////////////////////////////////////////// // Function: LVecBase2::get_data // Access: Public diff --git a/panda/src/linmath/lvecBase2_src.h b/panda/src/linmath/lvecBase2_src.h index 7946a80b56..0b2092afae 100644 --- a/panda/src/linmath/lvecBase2_src.h +++ b/panda/src/linmath/lvecBase2_src.h @@ -50,10 +50,19 @@ PUBLISHED: INLINE_LINMATH FLOATTYPE get_cell(int i) const; INLINE_LINMATH FLOATTYPE get_x() const; INLINE_LINMATH FLOATTYPE get_y() const; + INLINE_LINMATH void set_cell(int i, FLOATTYPE value); INLINE_LINMATH void set_x(FLOATTYPE value); INLINE_LINMATH void set_y(FLOATTYPE value); + // These next functions add to an existing value. + // i.e. foo.set_x(foo.get_x() + value) + // These are useful to reduce overhead in scripting + // languages: + INLINE_LINMATH void add_to_cell(int i, FLOATTYPE value); + INLINE_LINMATH void add_x(FLOATTYPE value); + INLINE_LINMATH void add_y(FLOATTYPE value); + INLINE_LINMATH const FLOATTYPE *get_data() const; INLINE_LINMATH int get_num_components() const; diff --git a/panda/src/linmath/lvecBase3_src.I b/panda/src/linmath/lvecBase3_src.I index f19a4c80c9..c245d0d767 100644 --- a/panda/src/linmath/lvecBase3_src.I +++ b/panda/src/linmath/lvecBase3_src.I @@ -250,6 +250,47 @@ set_z(FLOATTYPE value) { _v.v._2 = value; } +//////////////////////////////////////////////////////////////////// +// Function: LVecBase3::add_to_cell +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE_LINMATH void FLOATNAME(LVecBase3):: +add_to_cell(int i, FLOATTYPE value) { + nassertv(i >= 0 && i < 3); + _v.data[i] += value; +} + +//////////////////////////////////////////////////////////////////// +// Function: LVecBase3::add_x +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE_LINMATH void FLOATNAME(LVecBase3):: +add_x(FLOATTYPE value) { + _v.v._0 += value; +} + +//////////////////////////////////////////////////////////////////// +// Function: LVecBase3::add_y +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE_LINMATH void FLOATNAME(LVecBase3):: +add_y(FLOATTYPE value) { + _v.v._1 += value; +} + +//////////////////////////////////////////////////////////////////// +// Function: LVecBase3::add_z +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE_LINMATH void FLOATNAME(LVecBase3):: +add_z(FLOATTYPE value) { + _v.v._2 += value; +} + //////////////////////////////////////////////////////////////////// // Function: LVecBase3::get_data // Access: Public diff --git a/panda/src/linmath/lvecBase3_src.h b/panda/src/linmath/lvecBase3_src.h index c73c297ad1..6a0c8c1b1a 100644 --- a/panda/src/linmath/lvecBase3_src.h +++ b/panda/src/linmath/lvecBase3_src.h @@ -49,11 +49,21 @@ PUBLISHED: INLINE_LINMATH FLOATTYPE get_x() const; INLINE_LINMATH FLOATTYPE get_y() const; INLINE_LINMATH FLOATTYPE get_z() const; + INLINE_LINMATH void set_cell(int i, FLOATTYPE value); INLINE_LINMATH void set_x(FLOATTYPE value); INLINE_LINMATH void set_y(FLOATTYPE value); INLINE_LINMATH void set_z(FLOATTYPE value); + // These next functions add to an existing value. + // i.e. foo.set_x(foo.get_x() + value) + // These are useful to reduce overhead in scripting + // languages: + INLINE_LINMATH void add_to_cell(int i, FLOATTYPE value); + INLINE_LINMATH void add_x(FLOATTYPE value); + INLINE_LINMATH void add_y(FLOATTYPE value); + INLINE_LINMATH void add_z(FLOATTYPE value); + INLINE_LINMATH const FLOATTYPE *get_data() const; INLINE_LINMATH int get_num_components() const; diff --git a/panda/src/linmath/lvecBase4.h b/panda/src/linmath/lvecBase4.h index 7734226b60..0a2cb94e9c 100644 --- a/panda/src/linmath/lvecBase4.h +++ b/panda/src/linmath/lvecBase4.h @@ -19,12 +19,12 @@ #ifndef LVECBASE4_H #define LVECBASE4_H -#include -#include -#include -#include -#include -#include +#include "pandabase.h" +#include "typedObject.h" +#include "notify.h" +#include "datagram.h" +#include "datagramIterator.h" +#include "checksumHashGenerator.h" #include "cmath.h" #include "nearly_zero.h" diff --git a/panda/src/linmath/lvecBase4_src.I b/panda/src/linmath/lvecBase4_src.I index edcfbc219b..d399c13ddb 100644 --- a/panda/src/linmath/lvecBase4_src.I +++ b/panda/src/linmath/lvecBase4_src.I @@ -284,6 +284,57 @@ set_w(FLOATTYPE value) { _v.v._3 = value; } +//////////////////////////////////////////////////////////////////// +// Function: LVecBase4::add_to_cell +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE_LINMATH void FLOATNAME(LVecBase4):: +add_to_cell(int i, FLOATTYPE value) { + nassertv(i >= 0 && i < 4); + _v.data[i] += value; +} + +//////////////////////////////////////////////////////////////////// +// Function: LVecBase4::add_x +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE_LINMATH void FLOATNAME(LVecBase4):: +add_x(FLOATTYPE value) { + _v.v._0 += value; +} + +//////////////////////////////////////////////////////////////////// +// Function: LVecBase4::add_y +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE_LINMATH void FLOATNAME(LVecBase4):: +add_y(FLOATTYPE value) { + _v.v._1 += value; +} + +//////////////////////////////////////////////////////////////////// +// Function: LVecBase4::add_z +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE_LINMATH void FLOATNAME(LVecBase4):: +add_z(FLOATTYPE value) { + _v.v._2 += value; +} + +//////////////////////////////////////////////////////////////////// +// Function: LVecBase4::add_w +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE_LINMATH void FLOATNAME(LVecBase4):: +add_w(FLOATTYPE value) { + _v.v._3 += value; +} + //////////////////////////////////////////////////////////////////// // Function: LVecBase4::get_data // Access: Public diff --git a/panda/src/linmath/lvecBase4_src.h b/panda/src/linmath/lvecBase4_src.h index be20a03d42..ed5dfd146b 100644 --- a/panda/src/linmath/lvecBase4_src.h +++ b/panda/src/linmath/lvecBase4_src.h @@ -51,12 +51,23 @@ PUBLISHED: INLINE_LINMATH FLOATTYPE get_y() const; INLINE_LINMATH FLOATTYPE get_z() const; INLINE_LINMATH FLOATTYPE get_w() const; + INLINE_LINMATH void set_cell(int i, FLOATTYPE value); INLINE_LINMATH void set_x(FLOATTYPE value); INLINE_LINMATH void set_y(FLOATTYPE value); INLINE_LINMATH void set_z(FLOATTYPE value); INLINE_LINMATH void set_w(FLOATTYPE value); + // These next functions add to an existing value. + // i.e. foo.set_x(foo.get_x() + value) + // These are useful to reduce overhead in scripting + // languages: + INLINE_LINMATH void add_to_cell(int i, FLOATTYPE value); + INLINE_LINMATH void add_x(FLOATTYPE value); + INLINE_LINMATH void add_y(FLOATTYPE value); + INLINE_LINMATH void add_z(FLOATTYPE value); + INLINE_LINMATH void add_w(FLOATTYPE value); + INLINE_LINMATH const FLOATTYPE *get_data() const; INLINE_LINMATH int get_num_components() const; diff --git a/panda/src/linmath/lvector3.h b/panda/src/linmath/lvector3.h index 97e8069677..817fef6ef4 100644 --- a/panda/src/linmath/lvector3.h +++ b/panda/src/linmath/lvector3.h @@ -19,7 +19,7 @@ #ifndef LVECTOR3_H #define LVECTOR3_H -#include +#include "pandabase.h" #include "coordinateSystem.h" #include "cmath.h" diff --git a/panda/src/linmath/pta_Colorf.h b/panda/src/linmath/pta_Colorf.h index 3442392d6b..58115e755f 100644 --- a/panda/src/linmath/pta_Colorf.h +++ b/panda/src/linmath/pta_Colorf.h @@ -19,11 +19,11 @@ #ifndef PTA_COLORF_H #define PTA_COLORF_H -#include +#include "pandabase.h" #include "vector_Colorf.h" -#include +#include "pointerToArray.h" //////////////////////////////////////////////////////////////////// // Class : PTA_Colorf diff --git a/panda/src/linmath/vector_Colorf.h b/panda/src/linmath/vector_Colorf.h index 41b7b14a64..d727842a00 100644 --- a/panda/src/linmath/vector_Colorf.h +++ b/panda/src/linmath/vector_Colorf.h @@ -19,10 +19,8 @@ #ifndef VECTOR_COLORF_H #define VECTOR_COLORF_H -#include - +#include "pandabase.h" #include "luse.h" - #include "pvector.h" //////////////////////////////////////////////////////////////////// @@ -39,7 +37,7 @@ #define TYPE Colorf #define NAME vector_Colorf -#include +#include "vector_src.h" // Tell GCC that we'll take care of the instantiation explicitly here. #ifdef __GNUC__ diff --git a/panda/src/linmath/vector_LPoint2f.h b/panda/src/linmath/vector_LPoint2f.h index c582bc2e76..b826d1f75d 100644 --- a/panda/src/linmath/vector_LPoint2f.h +++ b/panda/src/linmath/vector_LPoint2f.h @@ -19,10 +19,8 @@ #ifndef VECTOR_LPOINT2F_H #define VECTOR_LPOINT2F_H -#include - +#include "pandabase.h" #include "luse.h" - #include "pvector.h" //////////////////////////////////////////////////////////////////// @@ -39,7 +37,7 @@ #define TYPE LPoint2f #define NAME vector_LPoint2f -#include +#include "vector_src.h" // Tell GCC that we'll take care of the instantiation explicitly here. #ifdef __GNUC__ diff --git a/panda/src/linmath/vector_LVecBase3f.h b/panda/src/linmath/vector_LVecBase3f.h index 287c14e476..cb8d575697 100644 --- a/panda/src/linmath/vector_LVecBase3f.h +++ b/panda/src/linmath/vector_LVecBase3f.h @@ -19,10 +19,8 @@ #ifndef VECTOR_LVECBASE3F_H #define VECTOR_LVECBASE3F_H -#include - +#include "pandabase.h" #include "luse.h" - #include "pvector.h" //////////////////////////////////////////////////////////////////// @@ -39,7 +37,7 @@ #define TYPE LVecBase3f #define NAME vector_LVecBase3f -#include +#include "vector_src.h" // Tell GCC that we'll take care of the instantiation explicitly here. #ifdef __GNUC__ diff --git a/panda/src/linmath/vector_Normalf.h b/panda/src/linmath/vector_Normalf.h index acfa3fd209..cd09e907ca 100644 --- a/panda/src/linmath/vector_Normalf.h +++ b/panda/src/linmath/vector_Normalf.h @@ -19,10 +19,8 @@ #ifndef VECTOR_NORMALF_H #define VECTOR_NORMALF_H -#include - +#include "pandabase.h" #include "luse.h" - #include "pvector.h" //////////////////////////////////////////////////////////////////// @@ -39,7 +37,7 @@ #define TYPE Normalf #define NAME vector_Normalf -#include +#include "vector_src.h" // Tell GCC that we'll take care of the instantiation explicitly here. #ifdef __GNUC__ diff --git a/panda/src/linmath/vector_TexCoordf.h b/panda/src/linmath/vector_TexCoordf.h index a196351f98..011eb97cb2 100644 --- a/panda/src/linmath/vector_TexCoordf.h +++ b/panda/src/linmath/vector_TexCoordf.h @@ -19,8 +19,7 @@ #ifndef VECTOR_TEXCOORDF_H #define VECTOR_TEXCOORDF_H -#include - +#include "pandabase.h" #include "vector_LPoint2f.h" //////////////////////////////////////////////////////////////////// diff --git a/panda/src/linmath/vector_Vertexf.h b/panda/src/linmath/vector_Vertexf.h index c9c74a9e49..88eb97805f 100644 --- a/panda/src/linmath/vector_Vertexf.h +++ b/panda/src/linmath/vector_Vertexf.h @@ -19,10 +19,8 @@ #ifndef VECTOR_VERTEXF_H #define VECTOR_VERTEXF_H -#include - +#include "pandabase.h" #include "luse.h" - #include "pvector.h" //////////////////////////////////////////////////////////////////// @@ -39,7 +37,7 @@ #define TYPE Vertexf #define NAME vector_Vertexf -#include +#include "vector_src.h" // Tell GCC that we'll take care of the instantiation explicitly here. #ifdef __GNUC__