Skip to content

Commit 68df8be

Browse files
PaulDemeulenaerejulienf-unity
authored andcommitted
[Fix] Disable reset option (#41)
1 parent ec8f00b commit 68df8be

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

com.unity.visualeffectgraph/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77
## [7.4.2] - 2020-08-XX
88
#Fixed
99
- Fix issue with strips outputs that could cause too many vertices to be renderered
10+
- Disable Reset option in context menu for all VFXObject [Case 1251519](https://issuetracker.unity3d.com/product/unity/issues/guid/1251519/) & [Case 1251533](https://issuetracker.unity3d.com/product/unity/issues/guid/1251533/)
11+
1012

1113
## [7.4.1] - 2020-06-03
1214

com.unity.visualeffectgraph/Editor/Models/VFXModel.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ namespace UnityEditor.VFX
1111
{
1212
class VFXObject : ScriptableObject
1313
{
14+
//Explicitly disable the Reset option on all VFXObject
15+
//Internal Reset() behavior leads to a dandling state in graph object
16+
[MenuItem("CONTEXT/VFXObject/Reset", false)]
17+
public static void DummyReset()
18+
{
19+
}
20+
21+
[MenuItem("CONTEXT/VFXObject/Reset", true)]
22+
static bool ValidateDummyReset()
23+
{
24+
return false;
25+
}
26+
1427
public Action<VFXObject> onModified;
1528
void OnValidate()
1629
{

0 commit comments

Comments
 (0)