Skip to content

Commit bce0be7

Browse files
committed
- Fixed non editor build error
1 parent a4086d3 commit bce0be7

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

Source/HoudiniEngine/Private/HoudiniEngineManager.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ FHoudiniEngineManager::Tick(float DeltaTime)
354354
// Update the tick time for this component
355355
CurrentComponent->LastTickTime = dNow;
356356
}
357-
357+
#if WITH_EDITORONLY_DATA
358358
// See if we need to update this HDA's details panel
359359
if (CurrentComponent->bNeedToUpdateEditorProperties)
360360
{
@@ -363,6 +363,7 @@ FHoudiniEngineManager::Tick(float DeltaTime)
363363
FHoudiniEngineUtils::UpdateEditorProperties(true);
364364
CurrentComponent->bNeedToUpdateEditorProperties = false;
365365
}
366+
#endif
366367
}
367368

368369
// Handle Asset delete
@@ -490,9 +491,11 @@ FHoudiniEngineManager::ProcessComponent(UHoudiniAssetComponent* HAC)
490491
// Refresh UI when pause cooking
491492
if (!FHoudiniEngine::Get().HasUIFinishRefreshingWhenPausingCooking())
492493
{
494+
#if WITH_EDITORONLY_DATA
493495
// Trigger a details panel update if the Houdini asset actor is selected
494496
if (HAC->IsOwnerSelected())
495497
HAC->bNeedToUpdateEditorProperties = true;
498+
#endif
496499

497500
// Finished refreshing UI of one HDA.
498501
FHoudiniEngine::Get().RefreshUIDisplayedWhenPauseCooking();
@@ -660,8 +663,10 @@ FHoudiniEngineManager::ProcessComponent(UHoudiniAssetComponent* HAC)
660663

661664
if(!bCookStarted)
662665
{
666+
#if WITH_EDITORONLY_DATA
663667
// Just refresh editor properties?
664668
HAC->bNeedToUpdateEditorProperties = true;
669+
#endif
665670

666671
// TODO: Check! update state?
667672
HAC->SetAssetState(EHoudiniAssetState::None);
@@ -1307,8 +1312,10 @@ FHoudiniEngineManager::PostCook(UHoudiniAssetComponent* HAC, const bool& bSucces
13071312

13081313
FHoudiniEngine::Get().UpdateCookingNotification(FText::FromString(DisplayName + " :\nFinished processing outputs"), true);
13091314

1315+
#if WITH_EDITORONLY_DATA
13101316
// Indicate we want to trigger a details panel update
13111317
HAC->bNeedToUpdateEditorProperties = true;
1318+
#endif
13121319

13131320
// If any outputs have HoudiniStaticMeshes, and if timer based refinement is enabled on the HAC,
13141321
// set the RefineMeshesTimer and ensure BuildStaticMeshesForAllHoudiniStaticMeshes is bound to

Source/HoudiniEngine/Private/HoudiniLandscapeSplineTranslator.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,10 @@ FHoudiniLandscapeSplineTranslator::ProcessLandscapeSplineOutput(
408408
// saves the level.
409409
InOutput->MarkPackageDirty();
410410

411+
#if WITH_EDITORONLY_DATA
411412
if(IsValid(HAC) && HAC->IsOwnerSelected())
412413
HAC->bNeedToUpdateEditorProperties = true;
414+
#endif
413415

414416
return true;
415417
}

Source/HoudiniEngine/Private/HoudiniParameterTranslator.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,10 @@ FHoudiniParameterTranslator::UpdateParameters(UHoudiniAssetComponent* HAC)
104104
// Replace with the new parameters
105105
HAC->Parameters = NewParameters;
106106

107+
#if WITH_EDITORONLY_DATA
107108
// Indicate we want to update the details panel after the parameter changes/updates
108109
HAC->bNeedToUpdateEditorProperties = true;
110+
#endif
109111
}
110112

111113

@@ -216,8 +218,10 @@ FHoudiniParameterTranslator::UpdateLoadedParameters(UHoudiniAssetComponent* HAC)
216218
// Simply replace with the new parameters
217219
HAC->Parameters = NewParameters;
218220

221+
#if WITH_EDITORONLY_DATA
219222
// Indicate we want to update the details panel after the parameter changes/updates
220223
HAC->bNeedToUpdateEditorProperties = true;
224+
#endif
221225
}
222226

223227
return true;

Source/HoudiniEngineRuntime/Private/HoudiniAssetComponent.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ UHoudiniAssetComponent::UHoudiniAssetComponent(const FObjectInitializer & Object
238238
bReplacePreviousBake = false;
239239
ActorBakeOption = EHoudiniEngineActorBakeOption::OneActorPerComponent;
240240
bAllowPlayInEditorRefinement = false;
241+
bNeedToUpdateEditorProperties = false;
241242
#endif
242243

243244
//
@@ -263,8 +264,6 @@ UHoudiniAssetComponent::UHoudiniAssetComponent(const FObjectInitializer & Object
263264

264265
// Initialize the default SM Build settings with the plugin's settings default values
265266
StaticMeshBuildSettings = FHoudiniEngineRuntimeUtils::GetDefaultMeshBuildSettings();
266-
267-
bNeedToUpdateEditorProperties = false;
268267
}
269268

270269
UHoudiniAssetComponent::~UHoudiniAssetComponent()

0 commit comments

Comments
 (0)