Skip to content

Commit b48dd26

Browse files
committed
Vfx/fix/sgoperator create context drag (#28)
* Prevent from creating a context in VisualEffectSugraphOperator by draggingfrom an output slot. * changelog
1 parent 99bd1ce commit b48dd26

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

com.unity.visualeffectgraph/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ The version number for this package has increased due to a version update of a r
109109
- Prevent capacity from being 0 [Case 1233044](https://issuetracker.unity3d.com/product/unity/issues/guid/1233044/)
110110
- Fix for dragged parameters order when there are categories
111111
- Avoid NullReferenceException in Previous Position Binder" component. [Case 1242351](https://issuetracker.unity3d.com/product/unity/issues/guid/1242351/)
112+
- Prevent from creating a context in VisualEffectSugraphOperator by draggingfrom an output slot.
112113

113114
## [7.1.1] - 2019-09-05
114115
### Added

com.unity.visualeffectgraph/Editor/GraphView/Elements/VFXDataAnchor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ void IEdgeConnectorListener.OnDropOutsidePort(Edge edge, Vector2 position)
297297
}
298298
else if (!exists)
299299
{
300-
if (direction == Direction.Input)
300+
if (direction == Direction.Input || viewController.model.visualEffectObject is VisualEffectSubgraphOperator) // no context for subgraph operators.
301301
VFXFilterWindow.Show(VFXViewWindow.currentWindow, Event.current.mousePosition, view.ViewToScreenPosition(Event.current.mousePosition), new VFXNodeProvider(viewController, AddLinkedNode, ProviderFilter, new Type[] { typeof(VFXOperator), typeof(VFXParameter)}));
302302
else
303303
VFXFilterWindow.Show(VFXViewWindow.currentWindow, Event.current.mousePosition, view.ViewToScreenPosition(Event.current.mousePosition), new VFXNodeProvider(viewController, AddLinkedNode, ProviderFilter, new Type[] { typeof(VFXOperator), typeof(VFXParameter), typeof(VFXContext) }));

0 commit comments

Comments
 (0)