Merge branch 'multiple_physics_scenes' of git://github.com/iainmckay/FlaxEngine into iainmckay-multiple_physics_scenes
This commit is contained in:
@@ -181,6 +181,8 @@ bool LevelImpl::spawnActor(Actor* actor, Actor* parent)
|
||||
}
|
||||
if (parent == nullptr)
|
||||
parent = Level::Scenes[0];
|
||||
|
||||
actor->SetPhysicsScene(parent->GetPhysicsScene());
|
||||
actor->SetParent(parent, true, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user