Merge pull request #7 from yawn831/fixerror

fix: 修复sg报错
pull/8/head
crazytuzi 1 year ago committed by GitHub
commit bf9949b5cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      SourceCodeGenerator.cs

@ -275,14 +275,6 @@ namespace SourceCodeGeneratorUbtPlugin
} }
} }
if (property is UhtObjectPtrProperty objectPtrProperty)
{
if (!IsClassTypeSupported(objectPtrProperty.Class))
{
return false;
}
}
if (property is UhtInterfaceProperty interfaceProperty) if (property is UhtInterfaceProperty interfaceProperty)
{ {
if (interfaceProperty.InterfaceClass == interfaceProperty.Session.IInterface) if (interfaceProperty.InterfaceClass == interfaceProperty.Session.IInterface)
@ -463,10 +455,6 @@ namespace SourceCodeGeneratorUbtPlugin
DependencyClasses.Add(classProperty.MetaClass); DependencyClasses.Add(classProperty.MetaClass);
} }
} }
else if (property is UhtObjectPtrProperty objectPtrProperty)
{
DependencyClasses.Add(objectPtrProperty.Class);
}
else if (property is UhtObjectProperty objectProperty) else if (property is UhtObjectProperty objectProperty)
{ {
DependencyClasses.Add(objectProperty.Class); DependencyClasses.Add(objectProperty.Class);

Loading…
Cancel
Save