MVVM Plugin error on startup

I Was Wrong, this does not work

Ok, after giving this a break for sometime, I revisited and reread the logs. I have found the location of this failure. It comes from the base c++ code this is generated by Unreal Engine in a fresh c++ project (which is likely why I didn’t find it initially). Anyways, the error happens in the GameMode.cpp that is generated for you project, when it tries to load the BP_Class for either your Character or Controller, if you try to use a widget that uses MVVM ViewModel in either of these classes it will fail to load the MVVM for the widget. I assume this is due to when it loads these classes.

As I use a BP version of my Gamemode in my game I don’t need to set these defaults, so I just removed the code and all is good now. The offending code was this:

// set default controller to our Blueprinted controller
// static ConstructorHelpers::FClassFinder<APlayerController> PlayerControllerBPClass(TEXT("/Game/TopDown/Blueprints/BP_TopDownPlayerController"));
// if(PlayerControllerBPClass.Class != NULL)
// {
// 	PlayerControllerClass = PlayerControllerBPClass.Class;
// }

This might need to be fixed, as this is kind of an obscure issue that effects this plugin.
This text will be hidden

My Solution did not work, it only worked because I removed the BP reference from gamemode, when I added the reference back to the BP Gamemode, the samething happens. I Would love a solution to this issue.