]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix of the exception of edit field (loaded with a study)
authormpv <mpv@opencascade.com>
Mon, 27 Mar 2017 10:11:24 +0000 (13:11 +0300)
committermpv <mpv@opencascade.com>
Mon, 27 Mar 2017 10:11:24 +0000 (13:11 +0300)
src/XGUI/XGUI_Workshop.cpp

index 12ec57391fe7ed06d9372546722417d8de29a16b..7188c561eb8c61f6c6761caf3bc5157373896361 100755 (executable)
@@ -47,6 +47,7 @@
 #include <ModelAPI_ResultConstruction.h>
 #include <ModelAPI_ResultGroup.h>
 #include <ModelAPI_ResultParameter.h>
+#include <ModelAPI_ResultField.h>
 #include <ModelAPI_Session.h>
 #include <ModelAPI_Validator.h>
 #include <ModelAPI_ResultCompSolid.h>
@@ -235,6 +236,8 @@ XGUI_Workshop::XGUI_Workshop(XGUI_SalomeConnector* theConnector)
                                    ModelAPI_ResultConstruction::DEFAULT_COLOR());
   Config_PropManager::registerProp("Visualization", "result_part_color", "Part color",
                                    Config_Prop::Color, ModelAPI_ResultPart::DEFAULT_COLOR());
+  Config_PropManager::registerProp("Visualization", "result_field_color", "Field color",
+                                   Config_Prop::Color, ModelAPI_ResultField::DEFAULT_COLOR());
 
   if (ModuleBase_Preferences::resourceMgr()->booleanValue("Viewer", "face-selection", true))
     myViewerSelMode.append(TopAbs_FACE);