Browse Source

workaround compile bug in VC++

David Rose 21 years ago
parent
commit
31c4c28637
1 changed files with 5 additions and 2 deletions
  1. 5 2
      panda/src/pgraph/lightAttrib.cxx

+ 5 - 2
panda/src/pgraph/lightAttrib.cxx

@@ -18,6 +18,7 @@
 
 #include "lightAttrib.h"
 #include "pandaNode.h"
+#include "nodePath.h"
 #include "graphicsStateGuardianBase.h"
 #include "bamReader.h"
 #include "bamWriter.h"
@@ -777,7 +778,8 @@ complete_pointers(TypedWritable **p_list, BamReader *manager) {
   while (ci != _off_lights.end()) {
     PandaNode *node;
     DCAST_INTO_R(node, p_list[pi++], pi);
-    (*ci) = NodePath(node);
+    NodePath np(node);
+    (*ci) = np;
     ++ci;
   }
 
@@ -785,7 +787,8 @@ complete_pointers(TypedWritable **p_list, BamReader *manager) {
   while (ci != _on_lights.end()) {
     PandaNode *node;
     DCAST_INTO_R(node, p_list[pi++], pi);
-    (*ci) = NodePath(node);
+    NodePath np(node);
+    (*ci) = np;
     ++ci;
   }