Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
eos
Commits
4bc99179
Commit
4bc99179
authored
Nov 19, 2015
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed wrong filename when storing a textured obj with a relative path (e.g. "./results/out")
parent
d75e544c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/eos/render/Mesh.hpp
include/eos/render/Mesh.hpp
+2
-2
No files found.
include/eos/render/Mesh.hpp
View file @
4bc99179
...
...
@@ -109,7 +109,7 @@ inline void write_textured_obj(Mesh mesh, std::string filename)
boost
::
filesystem
::
path
mtl_filename
(
filename
);
mtl_filename
.
replace_extension
(
".mtl"
);
obj_file
<<
"mtllib "
<<
mtl_filename
.
string
()
<<
std
::
endl
;
// first line of the obj file
obj_file
<<
"mtllib "
<<
mtl_filename
.
filename
().
string
()
<<
std
::
endl
;
// first line of the obj file
// same as in write_obj():
if
(
mesh
.
colors
.
empty
())
{
...
...
@@ -142,7 +142,7 @@ inline void write_textured_obj(Mesh mesh, std::string filename)
texture_filename
.
replace_extension
(
".isomap.png"
);
mtl_file
<<
"newmtl FaceTexture"
<<
std
::
endl
;
mtl_file
<<
"map_Kd "
<<
texture_filename
.
string
()
<<
std
::
endl
;
mtl_file
<<
"map_Kd "
<<
texture_filename
.
filename
().
string
()
<<
std
::
endl
;
return
;
};
...
...
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