Skip to content

Commit

Permalink
Update for API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug committed Nov 28, 2024
1 parent 9c05ca8 commit 3736823
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RavEngine
2 changes: 1 addition & 1 deletion Samples/Perf_ECS/Level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ PerfA_World::PerfA_World() {

// spawn Control entity
auto control = Instantiate<GameObject>();
auto gui = control.EmplaceComponent<GUIComponent>();
auto& gui = control.EmplaceComponent<GUIComponent>();
auto doc = gui.AddDocument("ui.rml");
control.EmplaceComponent<CameraComponent>().SetActive(true);

Expand Down
2 changes: 1 addition & 1 deletion Samples/Playground/TestEntity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void TestEntity::CommonInit(){
if (!sharedMatInst) {
sharedMatInst = RavEngine::New<PBRMaterialInstance>(Material::Manager::Get<PBRMaterial>());
}
auto mesh = EmplaceComponent<StaticMesh>(MeshCollectionStaticManager::Get("bunny_decimated"), sharedMatInst);
auto& mesh = EmplaceComponent<StaticMesh>(MeshCollectionStaticManager::Get("bunny_decimated"), sharedMatInst);

auto& script = EmplaceComponent<TestEntityController>();
auto& r = EmplaceComponent<RigidBodyDynamicComponent>(FilterLayers::L0, FilterLayers::L0 | FilterLayers::L1);
Expand Down

0 comments on commit 3736823

Please sign in to comment.