Skip to content

Commit

Permalink
Fix bug with operator atts displaying incorrectly after session resto…
Browse files Browse the repository at this point in the history
…re. (#19874) (#19875)
  • Loading branch information
brugger1 authored Oct 3, 2024
1 parent 7abc157 commit b976f78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/resources/help/en_US/relnotes3.4.2.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<li>Fixed bug with Pseudocolor plots of datasets with very large or small extents being rendered black.</li>
<li>ChooseCenter with a mouse on Scatter plot now works.</li>
<li>Fixed a bug in the Plaintext Reader causing reading variable names that were single-characters to fail.</li>
<li>Fixed a bug where the operator attribute windows will show the default attributes when displaying the attributes for an operator applied to a plot after restoring a session. The plots displayed in the visualization windows will be correct, just the attributes displayed in the attribute window will be incorrect. This happens with session files saved with releases 3.4 and 3.4.1. To fix the issue you will need to save a new session file using a newer version of VisIt. If you restored a session with a bad session file, you will need to change the attributes of any affected operators before saving the new session file.</li>
</ul>
<a name="Enhancements"></a>
<p><b><font size="4">Enhancements in version 3.4.2</font></b></p>
Expand Down
9 changes: 9 additions & 0 deletions src/viewer/core/ViewerOperator.C
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,10 @@ ViewerOperator::NeedsRecalculation() const
// Eric Brugger, Wed Mar 22 16:23:12 PDT 2023
// Add operator keyframing.
//
// Eric Brugger, Wed Oct 2 13:41:53 PDT 2024
// Added logic to store the current operator attributes before storing
// the keyframed operator attributes.
//
// ****************************************************************************

void
Expand All @@ -581,6 +585,11 @@ ViewerOperator::CreateNode(DataNode *parentNode)
DataNode *operatorNode = new DataNode("ViewerOperator");
parentNode->AddNode(operatorNode);

//
// Store the current operator attributes.
//
curOperatorAtts->CreateNode(operatorNode, true, true);

//
// Add the keyframed operator attributes.
//
Expand Down

0 comments on commit b976f78

Please sign in to comment.