Browse Source

Merge branch 'release/1.9.x'

rdb 10 years ago
parent
commit
5f875239f2

+ 2 - 1
direct/src/actor/Actor.py

@@ -4,6 +4,7 @@ __all__ = ['Actor']
 
 
 from pandac.PandaModules import *
 from pandac.PandaModules import *
 from direct.showbase.DirectObject import DirectObject
 from direct.showbase.DirectObject import DirectObject
+from direct.directnotify import DirectNotifyGlobal
 from pandac.PandaModules import LODNode
 from pandac.PandaModules import LODNode
 import types, copy
 import types, copy
 
 
@@ -12,7 +13,7 @@ class Actor(DirectObject, NodePath):
     Actor class: Contains methods for creating, manipulating
     Actor class: Contains methods for creating, manipulating
     and playing animations on characters
     and playing animations on characters
     """
     """
-    notify = directNotify.newCategory("Actor")
+    notify = DirectNotifyGlobal.directNotify.newCategory("Actor")
     partPrefix = "__Actor_"
     partPrefix = "__Actor_"
 
 
     modelLoaderOptions = LoaderOptions(LoaderOptions.LFSearch |
     modelLoaderOptions = LoaderOptions(LoaderOptions.LFSearch |

+ 1 - 1
dtool/src/dtoolbase/p3dtoolbase_composite2.cxx

@@ -2,7 +2,7 @@
 #include "mutexWin32Impl.cxx"
 #include "mutexWin32Impl.cxx"
 #include "mutexSpinlockImpl.cxx"
 #include "mutexSpinlockImpl.cxx"
 #include "neverFreeMemory.cxx"
 #include "neverFreeMemory.cxx"
-#include "pdtoa.c"
+#include "pdtoa.cxx"
 #include "pstrtod.cxx"
 #include "pstrtod.cxx"
 #include "register_type.cxx"
 #include "register_type.cxx"
 #include "typeHandle.cxx"
 #include "typeHandle.cxx"

+ 0 - 0
dtool/src/dtoolbase/pdtoa.c → dtool/src/dtoolbase/pdtoa.cxx


+ 2 - 0
panda/src/gobj/geomPrimitive.cxx

@@ -22,6 +22,8 @@
 #include "geomVertexWriter.h"
 #include "geomVertexWriter.h"
 #include "geomVertexRewriter.h"
 #include "geomVertexRewriter.h"
 #include "geomPoints.h"
 #include "geomPoints.h"
+#include "geomLines.h"
+#include "geomTriangles.h"
 #include "preparedGraphicsObjects.h"
 #include "preparedGraphicsObjects.h"
 #include "internalName.h"
 #include "internalName.h"
 #include "bamReader.h"
 #include "bamReader.h"

+ 4 - 0
panda/src/grutil/frameRateMeter.cxx

@@ -180,6 +180,10 @@ clear_window() {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 bool FrameRateMeter::
 bool FrameRateMeter::
 cull_callback(CullTraverser *trav, CullTraverserData &data) {
 cull_callback(CullTraverser *trav, CullTraverserData &data) {
+  // This triggers when you try to parent a frame rate meter into
+  // the scene graph yourself.  Instead, use setup_window().
+  nassertr(_display_region != NULL, false);
+
   Thread *current_thread = trav->get_current_thread();
   Thread *current_thread = trav->get_current_thread();
 
 
   // Statistics
   // Statistics