Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merge pull request #48 from Broken-Gem-Studio/development
Browse files Browse the repository at this point in the history
Fixed issues issues with Scene play/stop and camera FOV
  • Loading branch information
t3m1X authored Mar 10, 2020
2 parents f9fcd93 + 3109122 commit 4f9cb78
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 4 deletions.
Binary file added Broken Engine/Game/BrokenCore_DEBUG.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Broken Engine/Game/Settings/EditorConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"GUI": {
"About": false,
"Build": false,
"Console": false,
"Console": true,
"Hierarchy": true,
"Inspector": true,
"Physics": true,
Expand Down
1 change: 1 addition & 0 deletions Broken Engine/Source/ComponentAnimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ void ComponentAnimation::BlendAnimations(float blend_time)
blending = false;
curr_blend_time = 0;
playing_animation = next_animation;
time = 0;
}

}
Expand Down
2 changes: 1 addition & 1 deletion Broken Engine/Source/ComponentCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ json ComponentCamera::Save() const {

void ComponentCamera::Load(json& node)
{
SetAspectRatio(node["ASPECTRATIO"].is_null() ? 1.0f : node["ASPECTRATIO"].get<float>());
SetFOV(node["FOV"].is_null() ? 60.0f : node["FOV"].get<float>());
SetNearPlane(node["NEARPLANE"].is_null() ? 0.1f : node["NEARPLANE"].get<float>());
SetFarPlane(node["FARPLANE"].is_null() ? 100.0f : node["FARPLANE"].get<float>());
SetAspectRatio(node["ASPECTRATIO"].is_null() ? 1.0f : node["ASPECTRATIO"].get<float>());
}

void ComponentCamera::CreateInspectorNode() {
Expand Down
3 changes: 1 addition & 2 deletions Broken Engine/Source/ModuleTimeManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void ModuleTimeManager::PrepareUpdate() {

case AppState::TO_EDITOR:
App->physics->DeleteActors();
App->GetAppState() = AppState::EDITOR;

App->scene_manager->SetActiveScene(App->scene_manager->currentScene);

// --- Clear temporal scene, eliminate temporal files/directory ---
Expand All @@ -78,7 +78,6 @@ void ModuleTimeManager::PrepareUpdate() {

App->GetAppState() = AppState::EDITOR;


ENGINE_CONSOLE_LOG("APP STATE EDITOR");
break;

Expand Down
24 changes: 24 additions & 0 deletions Broken Engine/Source/PanelResources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,30 @@ bool PanelResources::Draw()

ImGui::Separator();
}
if (ImGui::CollapsingHeader("Animations"))
{
for (std::map<uint, Broken::ResourceAnimation*>::const_iterator it = EngineApp->resources->animations.begin(); it != EngineApp->resources->animations.end(); ++it)
{
if ((*it).second)
{
DrawResourceNode((*it).second, instances_color);
}
}

ImGui::Separator();
}
if (ImGui::CollapsingHeader("Bones"))
{
for (std::map<uint, Broken::ResourceBone*>::const_iterator it = EngineApp->resources->bones.begin(); it != EngineApp->resources->bones.end(); ++it)
{
if ((*it).second)
{
DrawResourceNode((*it).second, instances_color);
}
}

ImGui::Separator();
}
if (ImGui::CollapsingHeader("Shaders"))
{
for (std::map<uint, Broken::ResourceShader*>::const_iterator it = EngineApp->resources->shaders.begin(); it != EngineApp->resources->shaders.end(); ++it)
Expand Down

0 comments on commit 4f9cb78

Please sign in to comment.