From d1a5fb651b6377bd5945645a4a9914c7f528671e Mon Sep 17 00:00:00 2001 From: chcurran Date: Wed, 9 Jun 2021 15:14:23 -0700 Subject: [PATCH] Fixes for reflection code that hides itself frm Script explicitly but NOT from ScriptCanvas --- .../Source/Integration/Components/SimpleMotionComponent.cpp | 2 -- .../Editor/Components/EditorSimpleMotionComponent.cpp | 1 - Gems/LmbrCentral/Code/Source/Scripting/TagComponent.cpp | 1 - 3 files changed, 4 deletions(-) diff --git a/Gems/EMotionFX/Code/Source/Integration/Components/SimpleMotionComponent.cpp b/Gems/EMotionFX/Code/Source/Integration/Components/SimpleMotionComponent.cpp index 2e0ca16af2..633cb5ed1d 100644 --- a/Gems/EMotionFX/Code/Source/Integration/Components/SimpleMotionComponent.cpp +++ b/Gems/EMotionFX/Code/Source/Integration/Components/SimpleMotionComponent.cpp @@ -103,9 +103,7 @@ namespace EMotionFX ->Attribute("Hidden", AZ::Edit::Attributes::PropertyHidden) ->VirtualProperty("PlayTime", "GetPlayTime", "PlayTime") ->Event("Motion", &SimpleMotionComponentRequestBus::Events::Motion) - ->Attribute(AZ::Script::Attributes::Ignore, true) ->Event("GetMotion", &SimpleMotionComponentRequestBus::Events::GetMotion) - ->Attribute(AZ::Script::Attributes::Ignore, true) ->VirtualProperty("Motion", "GetMotion", "Motion") ->Event("BlendInTime", &SimpleMotionComponentRequestBus::Events::BlendInTime) ->Event("GetBlendInTime", &SimpleMotionComponentRequestBus::Events::GetBlendInTime) diff --git a/Gems/EMotionFX/Code/Source/Integration/Editor/Components/EditorSimpleMotionComponent.cpp b/Gems/EMotionFX/Code/Source/Integration/Editor/Components/EditorSimpleMotionComponent.cpp index 4b463958af..ee8a0f7821 100644 --- a/Gems/EMotionFX/Code/Source/Integration/Editor/Components/EditorSimpleMotionComponent.cpp +++ b/Gems/EMotionFX/Code/Source/Integration/Editor/Components/EditorSimpleMotionComponent.cpp @@ -70,7 +70,6 @@ namespace EMotionFX ->Attribute("Hidden", AZ::Edit::Attributes::PropertyHidden) ->VirtualProperty("PreviewInEditor", "GetPreviewInEditor", "SetPreviewInEditor") ->Event("GetAssetDuration", &EditorSimpleMotionComponentRequestBus::Events::GetAssetDuration) - ->Attribute(AZ::Script::Attributes::Ignore, true) ; behaviorContext->Class() diff --git a/Gems/LmbrCentral/Code/Source/Scripting/TagComponent.cpp b/Gems/LmbrCentral/Code/Source/Scripting/TagComponent.cpp index 931ec8041e..ad5c2e499e 100644 --- a/Gems/LmbrCentral/Code/Source/Scripting/TagComponent.cpp +++ b/Gems/LmbrCentral/Code/Source/Scripting/TagComponent.cpp @@ -86,7 +86,6 @@ namespace LmbrCentral { behaviorContext->Class("Tag Helper") ->Method("Get Entities by Tag", &TagComponentBehaviorHelper::FindTaggedEntities) - ->Attribute(AZ::Script::Attributes::Ignore, 0) ->Attribute(AZ::Script::Attributes::Category, "Gameplay/Tag") ->Attribute(AZ::ScriptCanvasAttributes::FloatingFunction, 0) ;