Reduce compilation problems by moving FindObject fwd decl to be more commonly included
#1040
This commit is contained in:
@@ -267,3 +267,5 @@ API_CLASS(InBuild) class FLAXENGINE_API PersistentScriptingObject : public Scrip
|
||||
public:
|
||||
PersistentScriptingObject(const SpawnParams& params);
|
||||
};
|
||||
|
||||
extern FLAXENGINE_API class ScriptingObject* FindObject(const Guid& id, class MClass* type);
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
#include "Stream.h"
|
||||
#include "Engine/Core/Templates.h"
|
||||
|
||||
extern FLAXENGINE_API class ScriptingObject* FindObject(const Guid& id, class MClass* type);
|
||||
|
||||
/// <summary>
|
||||
/// Base class for all data read streams
|
||||
/// </summary>
|
||||
|
||||
@@ -456,7 +456,7 @@ namespace Serialization
|
||||
Guid id;
|
||||
Deserialize(stream, id, modifier);
|
||||
modifier->IdsMapping.TryGet(id, id);
|
||||
v = (T*)FindObject(id, T::GetStaticClass());
|
||||
v = (T*)::FindObject(id, T::GetStaticClass());
|
||||
}
|
||||
|
||||
// Scripting Object Reference
|
||||
|
||||
Reference in New Issue
Block a user