Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Courses
Scotty3D
Commits
619427d9
Commit
619427d9
authored
Feb 17, 2021
by
TheNumbat
Browse files
fix loading rigged meshes
parent
bbb55ea3
Changes
1
Show whitespace changes
Inline
Side-by-side
src/scene/scene.cpp
View file @
619427d9
...
...
@@ -643,16 +643,18 @@ static void load_node(Scene& scobj, std::vector<std::string>& errors,
for
(
unsigned
int
k
=
0
;
k
<
root_node
->
mNumChildren
;
k
++
)
build_tree
(
root
,
root_node
->
mChildren
[
k
]);
}
new_obj
.
set_skel_dirty
();
}
}
std
::
string
m0
=
std
::
string
(
node
->
mName
.
C_Str
())
+
"-MAT_ANIM
_NODE0"
;
std
::
string
m0
=
std
::
string
(
node
->
mName
.
C_Str
())
+
"-
"
+
MAT_ANIM
0
;
aiNode
*
m0_node
=
scene
->
mRootNode
->
FindNode
(
aiString
(
m0
));
if
(
m0_node
)
{
node_to_obj
[
m0_node
]
=
new_obj
.
id
();
}
std
::
string
m1
=
std
::
string
(
node
->
mName
.
C_Str
())
+
"-MAT_ANIM
_NODE1"
;
std
::
string
m1
=
std
::
string
(
node
->
mName
.
C_Str
())
+
"-
"
+
MAT_ANIM
1
;
aiNode
*
m1_node
=
scene
->
mRootNode
->
FindNode
(
aiString
(
m1
));
if
(
m1_node
)
{
node_to_obj
[
m1_node
]
=
new_obj
.
id
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment