Browse Source

store non-const InternalNames

David Rose 20 years ago
parent
commit
3813de7e91
2 changed files with 5 additions and 5 deletions
  1. 2 2
      panda/src/gobj/textureStage.I
  2. 3 3
      panda/src/gobj/textureStage.h

+ 2 - 2
panda/src/gobj/textureStage.I

@@ -136,7 +136,7 @@ operator < (const TextureStage &other) const {
 //               sets, each of which must have a unique name.
 ////////////////////////////////////////////////////////////////////
 INLINE void TextureStage::
-set_texcoord_name(const InternalName *name) {
+set_texcoord_name(InternalName *name) {
   _texcoord_name = name;
 }
 
@@ -157,7 +157,7 @@ set_texcoord_name(const string &name) {
 //       Access: Published
 //  Description: Returns the InternalName
 ////////////////////////////////////////////////////////////////////
-INLINE const InternalName *TextureStage::
+INLINE InternalName *TextureStage::
 get_texcoord_name() const {
   return _texcoord_name;
 }

+ 3 - 3
panda/src/gobj/textureStage.h

@@ -101,9 +101,9 @@ PUBLISHED:
 
   INLINE bool operator < (const TextureStage &other) const;
 
-  INLINE void set_texcoord_name(const InternalName *name);
+  INLINE void set_texcoord_name(InternalName *name);
   INLINE void set_texcoord_name(const string &texcoord_name);
-  INLINE const InternalName *get_texcoord_name() const;
+  INLINE InternalName *get_texcoord_name() const;
 
   INLINE void set_mode(Mode mode);
   INLINE Mode get_mode() const;
@@ -177,7 +177,7 @@ private:
   string _name;
   int _sort;
   int _priority;
-  CPT(InternalName) _texcoord_name;
+  PT(InternalName) _texcoord_name;
   Mode _mode;
   Colorf _color;
   int _rgb_scale;