Explorar el Código

fix flatten plane

David Rose hace 17 años
padre
commit
5f3be0ab9a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      panda/src/pgraph/sceneGraphReducer.cxx

+ 1 - 1
panda/src/pgraph/sceneGraphReducer.cxx

@@ -438,7 +438,7 @@ r_flatten(PandaNode *grandparent_node, PandaNode *parent_node,
             << "considering radius of " << *parent_node
             << "considering radius of " << *parent_node
             << ": " << *bs << " vs. " << _combine_radius << "\n";
             << ": " << *bs << " vs. " << _combine_radius << "\n";
         }
         }
-        if (bs->is_empty() || bs->get_radius() <= _combine_radius) {
+        if (!bs->is_infinite() && (bs->is_empty() || bs->get_radius() <= _combine_radius)) {
           // This node fits within the specified radius; from here on
           // This node fits within the specified radius; from here on
           // down, we will have CS_other set, instead of
           // down, we will have CS_other set, instead of
           // CS_within_radius.
           // CS_within_radius.