Commit aafd1268 authored by Mike Kremer's avatar Mike Kremer

Fixed a bug when loading selections from files.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13913 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d73ff850
......@@ -85,6 +85,8 @@ void VolumeMeshSelectionPlugin::invertVertexSelection(int _objectId) {
void VolumeMeshSelectionPlugin::selectVertices(int _objectId, const IdList _ids, bool _deselect) {
if(_ids.empty()) return;
BaseObjectData* object = 0;
if(!PluginFunctions::getObject(_objectId, object)) {
......@@ -255,6 +257,8 @@ void VolumeMeshSelectionPlugin::invertEdgeSelection(int _objectId) {
void VolumeMeshSelectionPlugin::selectEdges(int _objectId, const IdList _ids, bool _deselect) {
if(_ids.empty()) return;
BaseObjectData* object = 0;
if(!PluginFunctions::getObject(_objectId, object)) {
......@@ -425,6 +429,8 @@ void VolumeMeshSelectionPlugin::invertHalfEdgeSelection(int _objectId) {
void VolumeMeshSelectionPlugin::selectHalfEdges(int _objectId, const IdList _ids, bool _deselect) {
if(_ids.empty()) return;
BaseObjectData* object = 0;
if(!PluginFunctions::getObject(_objectId, object)) {
......@@ -567,6 +573,8 @@ void VolumeMeshSelectionPlugin::invertFaceSelection(int _objectId) {
void VolumeMeshSelectionPlugin::selectFaces(int _objectId, const IdList _ids, bool _deselect) {
if(_ids.empty()) return;
BaseObjectData* object = 0;
if(!PluginFunctions::getObject(_objectId, object)) {
......@@ -737,6 +745,8 @@ void VolumeMeshSelectionPlugin::invertHalfFaceSelection(int _objectId) {
void VolumeMeshSelectionPlugin::selectHalfFaces(int _objectId, const IdList _ids, bool _deselect) {
if(_ids.empty()) return;
BaseObjectData* object = 0;
if(!PluginFunctions::getObject(_objectId, object)) {
......@@ -878,6 +888,8 @@ void VolumeMeshSelectionPlugin::invertCellSelection(int _objectId) {
void VolumeMeshSelectionPlugin::selectCells(int _objectId, const IdList _ids, bool _deselect) {
if(_ids.empty()) return;
BaseObjectData* object = 0;
if(!PluginFunctions::getObject(_objectId, object)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment