You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/properties/OutletProperty.ts
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ export class OutletProperty
38
38
/**
39
39
* What property of the data we will read we must return? if undefined, the entire data will be returned.
40
40
*/
41
-
private_outputProp?: string;
41
+
private_outputProp?: string|(()=>string);
42
42
43
43
private_type!: IDataType;
44
44
@@ -62,7 +62,7 @@ export class OutletProperty
62
62
* @param prop
63
63
* @returns
64
64
*/
65
-
outputProp(prop: string){
65
+
outputProp(prop: string|()=>string){
66
66
this._outputProp=prop;
67
67
returnthis;
68
68
}
@@ -185,6 +185,8 @@ export class OutletProperty
185
185
}
186
186
}
187
187
188
+
console.log("NEED TO CONVERT ",from,to)
189
+
188
190
if(size===DataSize.vec2)return`${base}.toVec2()`;
189
191
if(size===DataSize.vec3)return`${base}.toVec3()`;
190
192
if(size===DataSize.vec4)return`${base}.toVec4()`;
@@ -347,10 +349,18 @@ export class OutletProperty
347
349
else{
348
350
// if the scope of our cached owner is not reachabe from the script current scope, it means it is invalid, non reachable.
349
351
350
-
otherNameRef=this.owner.writeScript(script);///script.getOrCacheNodeScript( this.owner ); // if this throws an error, it will be catche by the input outlet that called us.
352
+
///script.getOrCacheNodeScript( this.owner ); // if this throws an error, it will be catche by the input outlet that called us.
0 commit comments