Skip to content

Commit 0999344

Browse files
committed
Fix issue with scope propagation on extern user field references
- This would cause issues when reading from fields in some cases
1 parent 531b11d commit 0999344

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Assets/UdonSharp/Editor/UdonSharpExpressionCapture.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ private void InheretScope(ExpressionCaptureScope childScope)
129129
accessSymbol = childScope.accessSymbol;
130130
captureEnum = childScope.captureEnum;
131131
arrayIndexerIndexSymbol = childScope.arrayIndexerIndexSymbol;
132+
captureLocalMethod = childScope.captureLocalMethod;
133+
captureExternUserField = childScope.captureExternUserField;
134+
captureExternUserMethod = childScope.captureExternUserMethod;
132135
}
133136

134137
public void SetToLocalSymbol(SymbolDefinition symbol)

0 commit comments

Comments
 (0)