UTaggedComponent only enables the tick when is representing a skeletalmesh
This commit is contained in:
parent
133873bf1c
commit
07bbfe1fcc
|
@ -18,6 +18,7 @@ UTaggedComponent::UTaggedComponent(const FObjectInitializer& ObjectInitializer)
|
|||
|
||||
TaggedMaterial = TaggedMaterialObject.Object;
|
||||
PrimaryComponentTick.bCanEverTick = true;
|
||||
PrimaryComponentTick.bStartWithTickEnabled = false;
|
||||
}
|
||||
|
||||
void UTaggedComponent::OnRegister()
|
||||
|
|
|
@ -214,6 +214,7 @@ void ATagger::TagActor(const AActor &Actor, bool bTagForSemanticSegmentation)
|
|||
|
||||
TaggedComponent->SetColor(Color);
|
||||
TaggedComponent->MarkRenderStateDirty();
|
||||
TaggedComponent->SetComponentTickEnabled(true);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue