Skip to content

Commit

Permalink
Copied a fix from PR #31
Browse files Browse the repository at this point in the history
  • Loading branch information
adsk-andygallay committed Jan 23, 2024
1 parent 603849f commit db168f8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
<Property Name="LocalBinaryDir" Value="$(RootDir)\Engine\Restricted\NotForLicensees\Binaries\$(MayaPlatform)\Maya"/>
<Property Name="LocalExtraDir" Value="$(RootDir)\Engine\Restricted\NotForLicensees\Extras\MayaUnrealLiveLinkPlugin"/>

<Node Name="Compile UnrealHeaderTool Maya">
<Compile Target="UnrealHeaderTool" Platform="$(MayaPlatform)" Configuration="$(BuildTarget)" Arguments="-precompile -nodebuginfo"/>
</Node>

<Node Name="Compile Maya $(MayaVersion)" Requires="Compile UnrealHeaderTool Maya">
<Node Name="Compile Maya $(MayaVersion)">
<Compile Target="MayaUnrealLiveLinkPlugin$(MayaVersion)" Platform="$(MayaPlatform)" Configuration="$(BuildTarget)" Arguments="-noxge"/>
<Copy From="$(LocalSourceDir)\MayaUnrealLiveLinkPlugin.mod" To="$(LocalBinaryDir)\MayaUnrealLiveLinkPlugin.mod" />
</Node>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2478,7 +2478,8 @@ void OnPlaybackRangeChanged(void* ClientData)
if (DetectIdleEvent.IsValid())
{
DetectIdleEvent->Stop();
DetectIdleEvent.Release();
// DetectIdleEvent.Release();
DetectIdleEvent.Reset();
}

// Start the worker thread that will wait for additional user input before rebuilding the subjects
Expand Down Expand Up @@ -2700,7 +2701,8 @@ MStatus initializePlugin(MObject MayaPluginObject)
*/
MStatus uninitializePlugin(MObject MayaPluginObject)
{
DetectIdleEvent.Release();
// DetectIdleEvent.Release();
DetectIdleEvent.Reset();

// Get the plugin API for the plugin object
MFnPlugin MayaPlugin(MayaPluginObject);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@

#include "MLiveLinkPropSubject.h"
#include "../MayaLiveLinkStreamManager.h"
#include "MayaUnrealLiveLinkPlugin/MayaUnrealLiveLinkUtils.h"
// #include "MayaUnrealLiveLinkPlugin/MayaUnrealLiveLinkUtils.h"
#include "../MayaUnrealLiveLinkUtils.h"
#include "LiveLinkTypes.h"
#include "Roles/MayaLiveLinkTimelineTypes.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ void UnrealInitializer::InitializeUnreal()
// Load UdpMessaging module needed by message bus.
FModuleManager::Get().LoadModule(TEXT("UdpMessaging"));

IPluginManager::Get().LoadModulesForEnabledPlugins(ELoadingPhase::PreDefault);
IPluginManager::Get().LoadModulesForEnabledPlugins(ELoadingPhase::Default);
IPluginManager::Get().LoadModulesForEnabledPlugins(ELoadingPhase::PostDefault);

InitializedOnce = true;
}

Expand Down

0 comments on commit db168f8

Please sign in to comment.