]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for issue #431
authormpv <mpv@opencascade.com>
Thu, 2 Apr 2015 15:33:38 +0000 (18:33 +0300)
committermpv <mpv@opencascade.com>
Thu, 2 Apr 2015 15:33:38 +0000 (18:33 +0300)
src/InitializationPlugin/InitializationPlugin_Plugin.cpp

index 8270656852020ed435d8f0856abc319edddf92f2..b2ced2b57b3ef5372fa45dbaf9ddcb9a3b316240 100644 (file)
@@ -32,6 +32,12 @@ void InitializationPlugin_Plugin::processEvent(const std::shared_ptr<Events_Mess
     std::shared_ptr<ModelAPI_DocumentCreatedMessage> aMessage = std::dynamic_pointer_cast<
         ModelAPI_DocumentCreatedMessage>(theMessage);
     DocumentPtr aDoc = aMessage->document();
+
+    /// Issue 431: for the current moment create planes only in the module document,
+    /// Later if it is needed we may create special initial planes in Parts (may be different)
+    if (aDoc != ModelAPI_Session::get()->moduleDocument())
+      return;
+
     std::list<FeaturePtr> aFeatures;
 
     // the viewer update should be blocked in order to avoid the features blinking before they are