Changed TObjectPtr<FCogImguiContext> to FCogImguiContext* as TObjectPtr should be used with UObject dervied classes only

This commit is contained in:
Elhoussine Mehnik committed 2023-12-19 17:44:16 +01:00
1 parent 18283d4187
commit ea100dbf77
3 files changed
+3 -3

No files matched your search

@@ -41,7 +41,7 @@ protected:
void AddMousePosEvent(const FVector2D& MousePosition) const;
TObjectPtr<FCogImguiContext> Context = nullptr;
FCogImguiContext* Context = nullptr;
TObjectPtr<UPlayerInput> PlayerInput;
@@ -20,7 +20,7 @@ struct ImPlotContext;
struct COGIMGUI_API FImGuiViewportData
{
TWeakPtr<SWindow> Window = nullptr;
TObjectPtr<FCogImguiContext> Context = nullptr;
FCogImguiContext* Context = nullptr;
TWeakPtr<SCogImguiWidget> Widget = nullptr;
};
@@ -57,7 +57,7 @@ protected:
void RefreshVisibility();
TObjectPtr<FCogImguiContext> Context = nullptr;
FCogImguiContext* Context = nullptr;
TSharedPtr<SWindow> Window = nullptr;