浏览代码

minor tweaks

David Rose 17 年之前
父节点
当前提交
711fe92e56
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      panda/src/display/graphicsEngine.cxx

+ 1 - 2
panda/src/display/graphicsEngine.cxx

@@ -1056,10 +1056,9 @@ is_scene_root(const PandaNode *node) {
           }
 
           Camera *camera_node;
-          DCAST_INTO_R(camera_node, camera.node(), NULL);
+          DCAST_INTO_R(camera_node, camera.node(), false);
           if (!camera_node->is_active()) {
             continue;
-            return NULL;
           }
 
           NodePath scene_root = camera_node->get_scene();