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
a9939f7c
Commit
a9939f7c
authored
Oct 15, 2020
by
TheNumbat
Browse files
mac build
parent
a677d0f6
Changes
1
Show whitespace changes
Inline
Side-by-side
src/scene/scene.cpp
View file @
a9939f7c
...
@@ -890,7 +890,6 @@ std::string Scene::write(std::string file, const Camera &render_cam,
...
@@ -890,7 +890,6 @@ std::string Scene::write(std::string file, const Camera &render_cam,
size_t
vert_idx
=
0
;
size_t
vert_idx
=
0
;
for
(
auto
v
=
mesh
.
vertices_begin
();
v
!=
mesh
.
vertices_end
();
v
++
)
{
for
(
auto
v
=
mesh
.
vertices_begin
();
v
!=
mesh
.
vertices_end
();
v
++
)
{
id_to_idx
[
v
->
id
()]
=
vert_idx
;
id_to_idx
[
v
->
id
()]
=
vert_idx
;
Vec3
n
=
mesh
.
flipped
()
?
-
v
->
normal
()
:
v
->
normal
();
ai_mesh
->
mVertices
[
vert_idx
]
=
vecVec
(
v
->
pos
);
ai_mesh
->
mVertices
[
vert_idx
]
=
vecVec
(
v
->
pos
);
vert_idx
++
;
vert_idx
++
;
}
}
...
...
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