Browse Source

oops, constructors forgot fullpath

David Rose 23 years ago
parent
commit
176c8458d5
2 changed files with 6 additions and 2 deletions
  1. 5 2
      panda/src/egg/eggFilenameNode.I
  2. 1 0
      panda/src/egg/eggTexture.cxx

+ 5 - 2
panda/src/egg/eggFilenameNode.I

@@ -34,7 +34,8 @@ EggFilenameNode() {
 INLINE EggFilenameNode::
 EggFilenameNode(const string &node_name, const Filename &filename) :
   EggNode(node_name),
-  _filename(filename)
+  _filename(filename),
+  _fullpath(filename)
 {
 }
 
@@ -46,7 +47,8 @@ EggFilenameNode(const string &node_name, const Filename &filename) :
 INLINE EggFilenameNode::
 EggFilenameNode(const EggFilenameNode &copy) :
   EggNode(copy),
-  _filename(copy._filename)
+  _filename(copy._filename),
+  _fullpath(copy._fullpath)
 {
 }
 
@@ -59,6 +61,7 @@ INLINE EggFilenameNode &EggFilenameNode::
 operator = (const EggFilenameNode &copy) {
   EggNode::operator = (copy);
   _filename = copy._filename;
+  _fullpath = copy._fullpath;
   return *this;
 }
 

+ 1 - 0
panda/src/egg/eggTexture.cxx

@@ -78,6 +78,7 @@ operator = (const EggTexture &copy) {
   _flags = copy._flags;
   _transform = copy._transform;
   _alpha_filename = copy._alpha_filename;
+  _alpha_fullpath = copy._alpha_fullpath;
 
   return *this;
 }