Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
Type-OpenVolumeMesh
Commits
a338b3b8
Commit
a338b3b8
authored
Jan 13, 2018
by
Martin Heistermann
Browse files
fix new bug: allow PluginFunctions::getObject() to fail without crashing.
parent
bf5b1a64
Changes
3
Hide whitespace changes
Inline
Side-by-side
ObjectTypes/HexahedralMesh/PluginFunctionsHexahedralMesh.cc
View file @
a338b3b8
...
...
@@ -108,7 +108,7 @@ bool getObject( int _identifier, HexahedralMeshObject*& _object ) {
BaseObjectData
*
object
=
0
;
PluginFunctions
::
getObject
(
_identifier
,
object
);
_object
=
hexahedralMeshObject
(
object
);
_object
=
object
?
hexahedralMeshObject
(
object
)
:
nullptr
;
return
(
_object
!=
0
);
}
...
...
ObjectTypes/PolyhedralMesh/PluginFunctionsPolyhedralMesh.cc
View file @
a338b3b8
...
...
@@ -108,7 +108,7 @@ bool getObject( int _identifier, PolyhedralMeshObject*& _object ) {
BaseObjectData
*
object
=
0
;
PluginFunctions
::
getObject
(
_identifier
,
object
);
_object
=
polyhedralMeshObject
(
object
);
_object
=
object
?
polyhedralMeshObject
(
object
)
:
nullptr
;
return
(
_object
!=
0
);
}
...
...
ObjectTypes/TetrahedralMesh/PluginFunctionsTetrahedralMesh.cc
View file @
a338b3b8
...
...
@@ -102,7 +102,7 @@ bool getObject( int _identifier, TetrahedralMeshObject*& _object ) {
BaseObjectData
*
object
=
0
;
PluginFunctions
::
getObject
(
_identifier
,
object
);
_object
=
tetrahedralMeshObject
(
object
);
_object
=
object
?
tetrahedralMeshObject
(
object
)
:
nullptr
;
return
(
_object
!=
0
);
}
...
...
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