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

This commit is contained in:
Elhoussine Mehnik
2023-12-19 17:44:16 +01:00
parent 18283d4187
commit ea100dbf77
3 changed files with 3 additions and 3 deletions
@@ -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;