Remove unlogical PrefabManager::IsNotCreatingPrefab (use IsCreatingPrefab flag)

This commit is contained in:
Wojtek Figat
2023-06-09 22:49:19 +02:00
parent a6430692d2
commit d798b10d4c
4 changed files with 4 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ struct Transform;
/// </summary>
API_CLASS(Static) class FLAXENGINE_API PrefabManager
{
DECLARE_SCRIPTING_TYPE_NO_SPAWN(PrefabManager);
DECLARE_SCRIPTING_TYPE_NO_SPAWN(PrefabManager);
/// <summary>
/// Spawns the instance of the prefab objects. Prefab will be spawned to the first loaded scene.
@@ -92,11 +92,6 @@ DECLARE_SCRIPTING_TYPE_NO_SPAWN(PrefabManager);
/// </summary>
static bool IsCreatingPrefab;
/// <summary>
/// Helper global state flag set to false during prefab asset creation. Can be used to skip local objects data serialization to prefab data.
/// </summary>
static bool IsNotCreatingPrefab;
/// <summary>
/// Creates the prefab asset from the given root actor. Saves it to the output file path.
/// </summary>