Skip to content
Snippets Groups Projects
Commit ef93b46e authored by David Gilbert's avatar David Gilbert :bug:
Browse files

Removed lock to origin, lines are now in local actor-component space.

parent 3fda8418
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -417,12 +417,6 @@ void UGPUInstancedLineComponent::PostEditChangeProperty(FPropertyChangedEvent& P ...@@ -417,12 +417,6 @@ void UGPUInstancedLineComponent::PostEditChangeProperty(FPropertyChangedEvent& P
Super::PostEditChangeProperty(PropertyChangedEvent); Super::PostEditChangeProperty(PropertyChangedEvent);
} }
// This is hacky - reset the transform to 0,0,0 every time the component is moved to not mess up the editor gizmos
void UGPUInstancedLineComponent::OnUpdateTransform(EUpdateTransformFlags UpdateTransformFlags, ETeleportType Teleport)
{
SetWorldTransform(FTransform::Identity);
}
void UGPUInstancedLineComponent::TickComponent(float DeltaTime, ELevelTick TickType, void UGPUInstancedLineComponent::TickComponent(float DeltaTime, ELevelTick TickType,
FActorComponentTickFunction* ThisTickFunction) FActorComponentTickFunction* ThisTickFunction)
{ {
......
...@@ -103,8 +103,6 @@ public: ...@@ -103,8 +103,6 @@ public:
#if WITH_EDITOR #if WITH_EDITOR
virtual void PostEditChangeChainProperty(FPropertyChangedChainEvent& PropertyChangedEvent) override; virtual void PostEditChangeChainProperty(FPropertyChangedChainEvent& PropertyChangedEvent) override;
virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override; // need this for the widget as for some godforsaken reason the Chain event doesn't fire... virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override; // need this for the widget as for some godforsaken reason the Chain event doesn't fire...
// This is ABSURDLY hacky
virtual void OnUpdateTransform(EUpdateTransformFlags UpdateTransformFlags, ETeleportType Teleport = ETeleportType::None) override;
virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override; virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment