diff --git a/FRBDK/Glue/Glue/CodeGeneration/NamedObjectSaveCodeGenerator.cs b/FRBDK/Glue/Glue/CodeGeneration/NamedObjectSaveCodeGenerator.cs index 8072c3b8b..d82948679 100644 --- a/FRBDK/Glue/Glue/CodeGeneration/NamedObjectSaveCodeGenerator.cs +++ b/FRBDK/Glue/Glue/CodeGeneration/NamedObjectSaveCodeGenerator.cs @@ -1341,12 +1341,18 @@ public static string GetQualifiedTypeName(NamedObjectSave namedObjectSave, bool if (namedObjectSave.SourceType == SaveClasses.SourceType.Entity && !string.IsNullOrEmpty(namedObjectSave.SourceClassType)) { - - return "global::" + ProjectManager.ProjectNamespace + '.' + namedObjectSave.SourceClassType.Replace('\\', '.'); + if(prefixGlobal) + { + return "global::" + ProjectManager.ProjectNamespace + '.' + namedObjectSave.SourceClassType.Replace('\\', '.'); + } + else + { + return ProjectManager.ProjectNamespace + '.' + namedObjectSave.SourceClassType.Replace('\\', '.'); + } } else if(namedObjectSave.IsList) { - return GetQualifiedClassType(namedObjectSave); + return GetQualifiedClassType(namedObjectSave, prefixGlobal); } else if ((ati = namedObjectSave.GetAssetTypeInfo()) != null) {