Explorar o código

make_cube_map() default uses PandaNode::get_all_camera_mask()

David Rose %!s(int64=19) %!d(string=hai) anos
pai
achega
556d564c5a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      panda/src/display/graphicsOutput.h

+ 2 - 1
panda/src/display/graphicsOutput.h

@@ -28,6 +28,7 @@
 #include "renderBuffer.h"
 
 #include "typedWritableReferenceCount.h"
+#include "pandaNode.h"
 #include "pStatCollector.h"
 #include "pnotify.h"
 #include "pmutex.h"
@@ -176,7 +177,7 @@ PUBLISHED:
       Texture *tex = NULL, bool to_ram = false);
   GraphicsOutput *make_cube_map(const string &name, int size,
                                 NodePath &camera_rig,
-                                DrawMask camera_mask = DrawMask::all_on(),
+                                DrawMask camera_mask = PandaNode::get_all_camera_mask(),
                                 bool to_ram = false);
 
   INLINE static Filename make_screenshot_filename(