| 22 | } |
| 23 | |
| 24 | bool FProxyDescriptor::Capture(FPCGExContext* InContext, const FString& Path, const ESource InSource, const bool bThrowError) |
| 25 | { |
| 26 | const TSharedPtr<FFacade> InFacade = DataFacade.Pin(); |
| 27 | check(InFacade); |
| 28 | |
| 29 | bool bValid = true; |
| 30 | |
| 31 | Selector = FPCGAttributePropertyInputSelector(); |
| 32 | Selector.Update(Path); |
| 33 | |
| 34 | Source = InSource; |
| 35 | |
| 36 | if (!PCGEx::TryGetTypeAndSource(Selector, InFacade, RealType, Source)) |
| 37 | { |
| 38 | if (bThrowError) { PCGEX_LOG_INVALID_SELECTOR_C(InContext, Attribute, Selector) } |
| 39 | bValid = false; |
| 40 | } |
| 41 | |
| 42 | Selector = Selector.CopyAndFixLast(InFacade->Source->GetData(Source)); |
| 43 | |
| 44 | UpdateSubSelection(); |
| 45 | WorkingType = SubSelection.GetSubType(RealType); |
| 46 | |
| 47 | return bValid; |
| 48 | } |
| 49 | |
| 50 | bool FProxyDescriptor::Capture(FPCGExContext* InContext, const FPCGAttributePropertyInputSelector& InSelector, const ESource InSource, const bool bThrowError) |
| 51 | { |
no test coverage detected