Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created a motion weave asset and updated imgui to the newest version #50

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

Cooltomten
Copy link
Collaborator

No description provided.

Copy link
Owner

@ChunkTreasure1 ChunkTreasure1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good other than what's noted

case Volt::AssetType::MotionWeave:
{
UI::OpenModal("New Motion Weave Graph##assetBrowser");
m_MotionWeaveTargetSkeleton = 0;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be = Asset::Null()

UI::EndProperties();
}

const bool cantCreate = m_MotionWeaveTargetSkeleton == 0;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be compared to Asset::Null()

if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled))
{
ImGui::BeginTooltip();
if (m_MotionWeaveTargetSkeleton == 0)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be compared to Asset::Null()

@@ -119,6 +120,9 @@ class AssetBrowserPanel : public EditorWindow
///// Animation Graph creation /////
NewAnimationGraphData myNewAnimationGraphData{};

///// Motion Weave creation /////
Volt::AssetHandle m_MotionWeaveTargetSkeleton = 0;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be = Asset::Null()

@@ -309,7 +309,6 @@ void ThemesPanel::SetMinecraftTheme()
style.Colors[ImGuiCol_ResizeGripActive] = ImVec4(0.4f, 0.67f, 1.000f, 1.000f);

style.Colors[ImGuiCol_Tab] = ImVec4(0.137f, 0.137f, 0.137f, 1.000f);
style.Colors[ImGuiCol_TabTop] = ImVec4(0.4f, 0.67f, 1.000f, 1.000f);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this removed?

{
MotionWeaveAssetEntry& entry = m_MotionWeaveAsset->GetMotionWeaveAssetEntries()[0];

MotionWeaveEntry newEntry;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use emplace_back instead

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to use YAMLStreamWriter & YAMLStreamReader instead

@@ -195,7 +195,6 @@ namespace Volt
style.Colors[ImGuiCol_ResizeGripActive] = ImVec4(0.4f, 0.67f, 1.000f, 1.000f);

style.Colors[ImGuiCol_Tab] = ImVec4(0.137f, 0.137f, 0.137f, 1.000f);
style.Colors[ImGuiCol_TabTop] = ImVec4(0.4f, 0.67f, 1.000f, 1.000f);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants