Changeset 2597 for trunk/packages
- Timestamp:
- Oct 2, 2011, 8:55:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/RpVtkRenderer.cpp
r2596 r2597 783 783 784 784 bool ret = true; 785 do { 786 if (!itr->second->setActiveScalars(scalarName)) { 787 ret = false; 785 bool needRangeUpdate = false; 786 do { 787 if (strcmp(itr->second->getActiveScalarsName(), scalarName) != 0) { 788 if (!itr->second->setActiveScalars(scalarName)) { 789 ret = false; 790 } else { 791 needRangeUpdate = true; 792 } 788 793 } 789 794 } while (doAll && ++itr != _dataSets.end()); 790 795 791 if ( ret) {796 if (needRangeUpdate) { 792 797 updateRanges(); 793 798 _needsRedraw = true; … … 815 820 816 821 bool ret = true; 817 do { 818 if (!itr->second->setActiveVectors(vectorName)) { 819 ret = false; 822 bool needRangeUpdate = false; 823 do { 824 if (strcmp(itr->second->getActiveVectorsName(), vectorName) != 0) { 825 if (!itr->second->setActiveVectors(vectorName)) { 826 ret = false; 827 } else { 828 needRangeUpdate = true; 829 } 820 830 } 821 831 } while (doAll && ++itr != _dataSets.end()); 822 832 823 if ( ret) {833 if (needRangeUpdate) { 824 834 updateRanges(); 825 835 _needsRedraw = true;
Note: See TracChangeset
for help on using the changeset viewer.