Skip to content

Commit 27b07de

Browse files
committed
Fix an issue where changing parameters would auto-cook, even if auto-cook was disabled.
1 parent b0d6f72 commit 27b07de

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Plugins/HoudiniEngineUnity/Scripts/Asset/HEU_HoudiniAsset.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,13 @@ internal HEU_AssetSerializedMetaData SerializedMetaData
763763
internal bool PendingAutoCookOnMouseRelease
764764
{
765765
get { return _pendingAutoCookOnMouseRelease; }
766-
set { _pendingAutoCookOnMouseRelease = value; }
766+
set
767+
{
768+
if (_autoCookOnParameterChange)
769+
_pendingAutoCookOnMouseRelease = value;
770+
else
771+
_pendingAutoCookOnMouseRelease = false;
772+
}
767773
}
768774

769775
// Enum to guess how Unity instantiated this object (because Unity doesn't provide instantiation callbacks)

0 commit comments

Comments
 (0)