Skip to content

Commit b2be1a1

Browse files
committed
check for the DescriptionAttribute in the PlugInfo constructor
1 parent bcb38b1 commit b2be1a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

game/addons/tools/Code/ShaderGraph/BaseNode.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,11 @@ public PlugInfo( PropertyInfo property )
371371
{
372372
info.Name = titleAttr.Value;
373373
}
374+
var descriptionAttr = property.GetCustomAttribute<DescriptionAttribute>();
375+
if ( descriptionAttr is not null )
376+
{
377+
info.Description = descriptionAttr.Value;
378+
}
374379
DisplayInfo = info;
375380
Property = property;
376381
}

0 commit comments

Comments
 (0)