Skip to content

Commit 6e54164

Browse files
committed
Removed "cook will dragging functionality" as it caused curves to be uneditable.
1 parent de1bd18 commit 6e54164

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

Plugins/HoudiniEngineUnity/Editor/UI/HEU_CurveUI.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,6 @@ private void UpdateEditMode(HEU_HoudiniAsset asset, int controlID, EventType eve
916916
// Drag selected points
917917
Vector3 handleCenter = bounds.center;
918918
isDraggingPoints = (EditorGUIUtility.hotControl != 0);
919-
cookWhileDragging = asset.CurveCookOnDrag;
920919
disableCurveScaleRot = asset.CurveDisableScaleRotation;
921920

922921

Plugins/HoudiniEngineUnity/Editor/UI/HEU_HoudiniAssetUI.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,11 +1145,6 @@ private void DrawCurvesSection(HEU_HoudiniAsset asset, SerializedObject assetObj
11451145
}
11461146
}
11471147

1148-
SerializedProperty curveCookOnDragProperty =
1149-
HEU_EditorUtility.GetSerializedProperty(assetObject, "_curveCookOnDrag");
1150-
curveCookOnDragProperty.boolValue = EditorGUILayout.Toggle(_cookCurveOnDragContent,
1151-
curveCookOnDragProperty.boolValue);
1152-
11531148
SerializedProperty curveFrameSelectedNodesProperty =
11541149
HEU_EditorUtility.GetSerializedProperty(assetObject, "_curveFrameSelectedNodes");
11551150
curveFrameSelectedNodesProperty.boolValue =

Plugins/HoudiniEngineUnity/Scripts/Asset/HEU_HoudiniAsset.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -708,14 +708,6 @@ internal void SetCurveDrawLayerMask(LayerMask mask)
708708

709709
[SerializeField] private bool _curveDisableScaleRotation = true;
710710

711-
[SerializeField] private bool _curveCookOnDrag = true;
712-
713-
internal bool CurveCookOnDrag
714-
{
715-
get { return _curveCookOnDrag; }
716-
set { _curveCookOnDrag = value; }
717-
}
718-
719711
[SerializeField] private bool _curveFrameSelectedNodes = true;
720712

721713
[SerializeField] private float _curveFrameSelectedNodeDistance = 20f;
@@ -5186,7 +5178,6 @@ private void CopyPropertiesTo(HEU_HoudiniAsset newAsset)
51865178
newAsset._curveDrawColliders = new List<Collider>(this._curveDrawColliders);
51875179
newAsset._curveDrawLayerMask = this._curveDrawLayerMask;
51885180
newAsset._curveDisableScaleRotation = this._curveDisableScaleRotation;
5189-
newAsset._curveCookOnDrag = this._curveCookOnDrag;
51905181

51915182
// Upload parameter preset
51925183
newAsset.UploadParameterPresetToHoudini(newAsset.GetAssetSession(false));
@@ -5640,7 +5631,6 @@ public bool IsEquivalentTo(HEU_HoudiniAsset asset)
56405631
"Curve project direction");
56415632
HEU_TestHelpers.AssertTrueLogEquivalent(this._curveDisableScaleRotation, asset.CurveDisableScaleRotation, ref bResult, header,
56425633
"Curve disable scale rotation");
5643-
HEU_TestHelpers.AssertTrueLogEquivalent(this._curveCookOnDrag, asset._curveCookOnDrag, ref bResult, header, "Curve cook on drag");
56445634
HEU_TestHelpers.AssertTrueLogEquivalent(this._curveFrameSelectedNodes, asset._curveFrameSelectedNodes, ref bResult, header,
56455635
"Curve Frame selected nodes");
56465636
HEU_TestHelpers.AssertTrueLogEquivalent(this._curveFrameSelectedNodeDistance, asset._curveFrameSelectedNodeDistance, ref bResult, header,

0 commit comments

Comments
 (0)