Fixed bug in osg::Node::isCullingActive().

Rnabled the automatic selection of the animation path if one is specified
on the commandline in sgv.
This commit is contained in:
Robert Osfield
2002-11-11 08:52:24 +00:00
parent e809955120
commit 6f3e2b681c
2 changed files with 4 additions and 4 deletions

View File

@@ -153,7 +153,7 @@ class SG_EXPORT Node : public Object
/** Return true if this node can be culled by view frustum, occlusion or small feature culling during the cull traversal.
* note, return true only if no children have culling disabled, and the local _cullingActive flag is true.*/
inline bool isCullingActive() const { return _numChildrenWithCullingDisabled==0 && _cullingActive && _bsphere.valid(); }
inline bool isCullingActive() const { return _numChildrenWithCullingDisabled==0 && _cullingActive && getBound().valid(); }
/** Get the number of Children of this node which are or have OccluderNode's.*/
inline unsigned int getNumChildrenWithOccluderNodes() const { return _numChildrenWithOccluderNodes; }