~ubuntu-branches/debian/sid/coin2/sid

« back to all changes in this revision

Viewing changes to src/nodes/SoSeparator.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-06-28 02:38:17 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080628023817-lgrh0u677j1gcqgf
Tags: 2.5.0-2
* debian/control: Change suggests from libopenal0 to libopenal0a.
  Closes: #488001.  Change ${Source-Version} to ${binary:Version}.
  Update to standards version 3.8.0.

* debian/rules: Do not ignore errors in clean rule.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**************************************************************************\
2
2
 *
3
3
 *  This file is part of the Coin 3D visualization library.
4
 
 *  Copyright (C) 1998-2006 by Systems in Motion.  All rights reserved.
 
4
 *  Copyright (C) 1998-2007 by Systems in Motion.  All rights reserved.
5
5
 *
6
6
 *  This library is free software; you can redistribute it and/or
7
7
 *  modify it under the terms of the GNU General Public License
693
693
{
694
694
  int numindices;
695
695
  const int * indices;
696
 
  if (action->getPathCode(numindices, indices) == SoAction::IN_PATH) {
 
696
  
 
697
  SoAction::PathCode pathcode = action->getPathCode(numindices, indices);
 
698
 
 
699
  if (pathcode == SoAction::IN_PATH) {
697
700
    SoState * state = action->getState();
698
701
    SoNode ** childarray = (SoNode**) this->children->getArrayPtr();
699
702
    state->push();
700
703
    int childidx = 0;
701
704
    for (int i = 0; i < numindices; i++) {
702
 
      SoAction::PathCode pathcode = action->getCurPathCode();
703
705
      for (; childidx < indices[i] && !action->hasTerminated(); childidx++) {
704
706
        SoNode * offpath = childarray[childidx];
705
707
        if (offpath->affectsState()) {
726
728
    }
727
729
    state->pop();
728
730
  }
729
 
  else {
730
 
    // we got to the end of the path
731
 
    assert(action->getCurPathCode() == SoAction::BELOW_PATH);
 
731
  else if (pathcode == SoAction::BELOW_PATH) {
732
732
    this->GLRenderBelowPath(action);
733
733
  }
734
734
}