From: nds Date: Tue, 10 Mar 2015 04:50:48 +0000 (+0300) Subject: Change color action for a body object X-Git-Tag: V_1.1.0~143^2~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=038bf647a077f1766aa61747ca1974e5a69f74a7;p=modules%2Fshaper.git Change color action for a body object Random color using by default. --- diff --git a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp index 11034f4f6..e2b1ee20f 100644 --- a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp +++ b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp @@ -35,7 +35,7 @@ ExchangePlugin_Plugin::ExchangePlugin_Plugin() // register random result color properties Config_PropManager::registerProp("Visualization", "random_result_color", "Use random color for results", - Config_Prop::Bool, "false"); + Config_Prop::Bool, "true"); } FeaturePtr ExchangePlugin_Plugin::createFeature(string theFeatureID) diff --git a/src/Model/Model_ResultBody.cpp b/src/Model/Model_ResultBody.cpp index edee5b149..6db5c9430 100644 --- a/src/Model/Model_ResultBody.cpp +++ b/src/Model/Model_ResultBody.cpp @@ -37,7 +37,7 @@ //#include //#define DEB_IMPORT 1 -#define RESULT_BODY_COLOR "#ff0000" +#define RESULT_BODY_COLOR "#E0A01B" Model_ResultBody::Model_ResultBody() { @@ -51,7 +51,7 @@ void Model_ResultBody::initAttributes() aData->addAttribute(COLOR_ID(), ModelAPI_AttributeColor::type()); // set the default value bool anIsRandomColor = Config_PropManager::boolean("Visualization", "random_result_color", - "false"); + "true"); AttributeColorPtr aColorAttr = std::dynamic_pointer_cast (aData->attribute(COLOR_ID())); if (anIsRandomColor)