-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: development
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this removed?
No description provided.