Revert previous checks, revert switch intend
This commit is contained in:
@@ -968,7 +968,8 @@ namespace FlaxEditor.Viewport
|
||||
|
||||
private void Spawn(ScriptType item, SceneGraphNode hit, ref Vector2 location, ref Vector3 hitLocation)
|
||||
{
|
||||
if (!(item.CreateInstance() is Actor actor))
|
||||
var actor = item.CreateInstance() as Actor;
|
||||
if (actor == null)
|
||||
{
|
||||
Editor.LogWarning("Failed to spawn actor of type " + item.TypeName);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user