Skip to content

Commit 40b3b66

Browse files
committed
Merge branch 'sourceOpType' into dev
2 parents 11a420e + f2f9e5f commit 40b3b66

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

TouchDesigner/project.toe

-104 Bytes
Binary file not shown.

TouchDesigner/td-python/scry.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ def check_active(self) -> bool:
1616

1717
def LogError(self, message: str, absFrame: int, severity: int, type, source: callable):
1818
error: scryEntities.scryError = scryEntities.scryError(
19-
message=message, severity=severity, opType=type, source=source.path, absFrame=absFrame)
19+
message=message,
20+
severity=severity,
21+
opType=type,
22+
source=source.path,
23+
sourceOpType=source.type,
24+
absFrame=absFrame)
2025

2126
# NOTE check if ws is currently active before attempting to send
2227
if self.check_active():

TouchDesigner/td-python/scryEntities.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def __init__(
7474
self,
7575
message: str,
7676
source: str,
77+
sourceOpType: str,
7778
absFrame: int,
7879
severity: int,
7980
opType: scryErrorOpType):
@@ -85,6 +86,7 @@ def __init__(
8586
severity=scryErrorLevel(severity),
8687
msgType=scryMsgType.error)
8788

89+
self.sourceOpType = sourceOpType
8890
self.opType = scryErrorOpType(opType)
8991

9092
def __repr__(self) -> str:
@@ -93,7 +95,8 @@ def __repr__(self) -> str:
9395
@property
9496
def toDict(self) -> dict:
9597
dataAsDict: dict = self._toDict
96-
dataAsDict["opType"] = self.opType.name
98+
dataAsDict['opType'] = self.opType.name
99+
dataAsDict['sourceOpType'] = self.sourceOpType
97100

98101
return dataAsDict
99102

0 commit comments

Comments
 (0)