From: mpv Date: Thu, 2 Apr 2015 15:33:38 +0000 (+0300) Subject: Fix for issue #431 X-Git-Tag: V_1.1.0~57^2~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f15208ada8dc607f7b0b524201a83784caf73b59;p=modules%2Fshaper.git Fix for issue #431 --- diff --git a/src/InitializationPlugin/InitializationPlugin_Plugin.cpp b/src/InitializationPlugin/InitializationPlugin_Plugin.cpp index 827065685..b2ced2b57 100644 --- a/src/InitializationPlugin/InitializationPlugin_Plugin.cpp +++ b/src/InitializationPlugin/InitializationPlugin_Plugin.cpp @@ -32,6 +32,12 @@ void InitializationPlugin_Plugin::processEvent(const std::shared_ptr 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 aFeatures; // the viewer update should be blocked in order to avoid the features blinking before they are