Skip to content

Commit b883dcf

Browse files
julienamsellemEvergreen
authored andcommitted
[VFX] Fixed two unexpected console messages
Jira: UUM-59122 1. When Unity starts a warning is displayed in the console telling two entries have the same name 2. In the VFX Graph, right click to open the context menu and select `Create Node` => exception in the console
1 parent 229c766 commit b883dcf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Packages/com.unity.visualeffectgraph/Editor/GraphView/Views/VFXView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ public Vector2 ViewToScreenPosition(Vector2 position)
17261726

17271727
void OnCreateNode(NodeCreationContext ctx)
17281728
{
1729-
if (Event.current.modifiers != EventModifiers.None)
1729+
if (Event.current != null && Event.current.modifiers != EventModifiers.None)
17301730
{
17311731
return;
17321732
}

Packages/com.unity.visualeffectgraph/Editor/VisualEffectGraphShortcuts.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ static void ConvertToSubgraphOperator(ShortcutArguments args)
233233
}
234234
}
235235

236-
[Shortcut("Visual Effect Graph/Convert to Subgraph Operators", typeof(VFXViewWindow), KeyCode.X, ShortcutModifiers.Shift)]
236+
[Shortcut("Visual Effect Graph/Toggle Property<->Inline", typeof(VFXViewWindow), KeyCode.X, ShortcutModifiers.Shift)]
237237
static void ToggleNodePropertyOrInline(ShortcutArguments args)
238238
{
239239
if (args.context is VFXViewWindow window)

0 commit comments

Comments
 (0)