Skip to content

Commit

Permalink
Merge pull request #6275 from murraystevenson/animatedEnabledPlugFix
Browse files Browse the repository at this point in the history
StandardNodeGadget : Fix crash when animating an `enabled` plug
  • Loading branch information
johnhaddon authored Feb 13, 2025
2 parents 66cf1cf + 35d4865 commit 5bab8f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
1.5.x.x (relative to 1.5.5.0)
=======

Fixes
-----

- StandardNodeGadget : Fixed crash when animating a node's `enabled` plug (#6274).

API
---

Expand Down
2 changes: 1 addition & 1 deletion src/GafferUI/StandardNodeGadget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ bool hasStaticValue( const Gaffer::BoolPlug *plug )
// that the compute itself is disabled, and will output
// a default value for the plug.

auto source = plug->source<BoolPlug>();
auto source = plug->source<ValuePlug>();
if( source == plug || source->direction() != Plug::Out )
{
return false;
Expand Down

0 comments on commit 5bab8f9

Please sign in to comment.