Merge branch 'actor-org' of https://github.com/Tryibion/FlaxEngine into Tryibion-actor-org
This commit is contained in:
@@ -253,7 +253,7 @@ namespace FlaxEditor.Windows.Assets
|
||||
if (actorType.IsAbstract)
|
||||
continue;
|
||||
ActorContextMenuAttribute attribute = null;
|
||||
foreach (var e in actorType.GetAttributes(true))
|
||||
foreach (var e in actorType.GetAttributes(false))
|
||||
{
|
||||
if (e is ActorContextMenuAttribute actorContextMenuAttribute)
|
||||
{
|
||||
|
||||
@@ -162,7 +162,7 @@ namespace FlaxEditor.Windows
|
||||
|
||||
// Get attribute
|
||||
ContentContextMenuAttribute attribute = null;
|
||||
foreach (var typeAttribute in type.GetAttributes(true))
|
||||
foreach (var typeAttribute in type.GetAttributes(false))
|
||||
{
|
||||
if (typeAttribute is ContentContextMenuAttribute contentContextMenuAttribute)
|
||||
{
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace FlaxEditor.Windows
|
||||
if (actorType.IsAbstract)
|
||||
continue;
|
||||
ActorContextMenuAttribute attribute = null;
|
||||
foreach (var e in actorType.GetAttributes(true))
|
||||
foreach (var e in actorType.GetAttributes(false))
|
||||
{
|
||||
if (e is ActorContextMenuAttribute actorContextMenuAttribute)
|
||||
{
|
||||
@@ -152,11 +152,11 @@ namespace FlaxEditor.Windows
|
||||
// go through each actor and add it to the context menu if it has the ActorContextMenu attribute
|
||||
foreach (var actorType in Editor.CodeEditing.Actors.Get())
|
||||
{
|
||||
if (actorType.IsAbstract || !actorType.HasAttribute(typeof(ActorContextMenuAttribute), true))
|
||||
if (actorType.IsAbstract || !actorType.HasAttribute(typeof(ActorContextMenuAttribute), false))
|
||||
continue;
|
||||
|
||||
ActorContextMenuAttribute attribute = null;
|
||||
foreach (var actorAttribute in actorType.GetAttributes(true))
|
||||
foreach (var actorAttribute in actorType.GetAttributes(false))
|
||||
{
|
||||
if (actorAttribute is ActorContextMenuAttribute actorContextMenuAttribute)
|
||||
{
|
||||
|
||||
@@ -250,7 +250,7 @@ namespace FlaxEditor.Windows
|
||||
foreach (var actorType in Editor.CodeEditing.Actors.Get())
|
||||
{
|
||||
ActorToolboxAttribute attribute = null;
|
||||
foreach (var e in actorType.GetAttributes(true))
|
||||
foreach (var e in actorType.GetAttributes(false))
|
||||
{
|
||||
if (e is ActorToolboxAttribute actorToolboxAttribute)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user