Skip to content

Commit

Permalink
commented/disabled buseActorProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto De Ioris committed Jan 4, 2018
1 parent daec1aa commit 38d4814
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Plugins/MaRLEnE/Source/MaRLEnE/Private/MLObserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ void FMLObservedPropertyDetails::CustomizeHeader(TSharedRef<class IPropertyHandl
if (!Observer)
return;

UObject *Parent = Observer->GetAttachParent();

/*
UObject *Parent = nullptr;
if (!Observer->bUseActorProperties)
Expand All @@ -109,6 +112,7 @@ void FMLObservedPropertyDetails::CustomizeHeader(TSharedRef<class IPropertyHandl
{
Parent = Observer->GetOwner();
}
*/

if (!Parent)
return;
Expand Down
4 changes: 2 additions & 2 deletions Plugins/MaRLEnE/Source/MaRLEnE/Public/MLObserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ class MARLENE_API UMLObserver : public USceneComponent
UPROPERTY(EditAnywhere, Category = ObservedProperties)
TArray<FMLObservedProperty> ObservedProperties;

UPROPERTY(EditAnywhere)
bool bUseActorProperties;
//UPROPERTY(EditAnywhere)
//bool bUseActorProperties;

UFUNCTION()
static TArray<UMLObserver *> GetRegisteredObservers();
Expand Down

0 comments on commit 38d4814

Please sign in to comment.