Compare commits
1 Commits
MultipleRo
...
main
Author | SHA1 | Date |
---|---|---|
Xiao Qi | 24080969a6 |
3343
MD_HomeownerV2.gltf
3343
MD_HomeownerV2.gltf
File diff suppressed because one or more lines are too long
21
premake5.lua
21
premake5.lua
|
@ -1,12 +1,12 @@
|
|||
outputdir = "%{wks.location}/bin/%{cfg.buildcfg}"
|
||||
interdir = "%{wks.location}/bin_int"
|
||||
workspace "ModelCompile"
|
||||
architecture "x64"
|
||||
configurations
|
||||
{
|
||||
"Release",
|
||||
"Debug"
|
||||
}
|
||||
-- outputdir = "%{wks.location}/bin/%{cfg.buildcfg}"
|
||||
-- interdir = "%{wks.location}/bin_int"
|
||||
-- workspace "ModelCompile"
|
||||
-- architecture "x64"
|
||||
-- configurations
|
||||
-- {
|
||||
-- "Release",
|
||||
-- "Debug"
|
||||
-- }
|
||||
|
||||
project "ModelCompiler"
|
||||
kind "ConsoleApp"
|
||||
|
@ -56,5 +56,4 @@ project "ModelCompiler"
|
|||
defines{"_RELEASE"}
|
||||
|
||||
filter "configurations:Publish"
|
||||
optimize "On"
|
||||
defines{"_RELEASE, _PUBLISH"}
|
||||
flags {"ExcludeFromBuild"}
|
|
@ -216,9 +216,6 @@ namespace SH_COMP
|
|||
)
|
||||
);
|
||||
|
||||
int nodeCounter{ 0 };
|
||||
IndexType latest{ rig.header.startNode };
|
||||
|
||||
while (!nodeQueue.empty())
|
||||
{
|
||||
auto const currentPair = nodeQueue.front();
|
||||
|
@ -235,17 +232,6 @@ namespace SH_COMP
|
|||
reinterpret_cast<char const*>(&childCount),
|
||||
sizeof(uint32_t)
|
||||
);
|
||||
nodeCounter++;
|
||||
|
||||
if (node.children.empty() && nodeCounter < rig.nodes.size())
|
||||
{
|
||||
nodeQueue.push(
|
||||
std::make_pair(
|
||||
++latest,
|
||||
rig.nodes.data() + latest
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
for (auto const& child : node.children)
|
||||
{
|
||||
|
@ -253,8 +239,6 @@ namespace SH_COMP
|
|||
child,
|
||||
rig.nodes.data() + child
|
||||
));
|
||||
|
||||
latest = latest < child ? child : latest;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@ namespace SH_COMP
|
|||
std::vector<AnimData> anims;
|
||||
|
||||
RigData rig;
|
||||
|
||||
std::unordered_map<uint32_t, uint32_t> nodeIndexMap;
|
||||
; };
|
||||
}
|
|
@ -18,7 +18,7 @@ int main(int argc, char* argv[])
|
|||
{
|
||||
std::vector<std::string> paths;
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
|
||||
if (argc == 1)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue