From c3d58a993c3e84b997d2aa48d3f28827ce95e912 Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 23 Dec 2014 16:03:28 +0300 Subject: [PATCH] Issue 295: skip closed documents on save, but still copy not-activated parts as files --- src/ModelAPI/ModelAPI_ResultPart.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ModelAPI/ModelAPI_ResultPart.h b/src/ModelAPI/ModelAPI_ResultPart.h index 64be92e3c..ce1ea03af 100644 --- a/src/ModelAPI/ModelAPI_ResultPart.h +++ b/src/ModelAPI/ModelAPI_ResultPart.h @@ -46,6 +46,9 @@ class ModelAPI_ResultPart : public ModelAPI_Result /// Sets this document as current and if it is not loaded yet, loads it virtual void activate() = 0; + + /// Returns true if document is activated (loaded into the memory) + virtual bool isActivated() = 0; }; //! Pointer on feature object -- 2.39.2