Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
C-Fu
OpenGL
Commits
6107b648
Commit
6107b648
authored
Nov 09, 2016
by
Anakin
Browse files
now every model is painted with it's own texture
parent
ee8989b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
MshViewer/Source/OpenGlController.cpp
View file @
6107b648
...
...
@@ -364,7 +364,7 @@ void OpenGLController::loadMsh(const char * path)
while
(
tempPath
.
back
()
!=
'/'
&&
tempPath
.
back
()
!=
'\\'
)
tempPath
.
pop_back
();
TextureTGA
tempTex
(
std
::
string
(
tempPath
+
vModels
.
front
()
->
texture
).
c_str
());
TextureTGA
tempTex
(
std
::
string
(
tempPath
+
it
->
texture
).
c_str
());
tempData
->
alpha
=
tempTex
.
hasAlpha
();
tempData
->
width
=
tempTex
.
getWidth
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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