Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenFlipper-Staging
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenFlipper-Free
OpenFlipper-Staging
Commits
8662a68a
Commit
8662a68a
authored
May 08, 2018
by
Martin Schultz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added postprocessing step to fix degenerates in assimp, bacuase trying
to add degenerates violates assertions
parent
240e752f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
PluginCollection-FilePlugins/Plugin-Assimp/AssimpPlugin.cc
PluginCollection-FilePlugins/Plugin-Assimp/AssimpPlugin.cc
+2
-2
No files found.
PluginCollection-FilePlugins/Plugin-Assimp/AssimpPlugin.cc
View file @
8662a68a
...
...
@@ -335,9 +335,9 @@ int AssimpPlugin::loadObject(QString _filename) {
const
aiScene
*
scene
=
NULL
;
if
(
type_
==
DATA_TRIANGLE_MESH
)
scene
=
importer
.
ReadFile
(
_filename
.
toStdString
(),
aiProcess_JoinIdenticalVertices
|
aiProcess_Triangulate
);
scene
=
importer
.
ReadFile
(
_filename
.
toStdString
(),
aiProcess_JoinIdenticalVertices
|
aiProcess_Triangulate
|
aiProcess_FindDegenerates
);
else
scene
=
importer
.
ReadFile
(
_filename
.
toStdString
(),
aiProcess_JoinIdenticalVertices
);
scene
=
importer
.
ReadFile
(
_filename
.
toStdString
(),
aiProcess_JoinIdenticalVertices
|
aiProcess_FindDegenerates
);
if
(
!
scene
)
{
emit
log
(
LOGERR
,
tr
(
importer
.
GetErrorString
()));
...
...
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