From: azv Date: Wed, 5 Dec 2018 05:49:21 +0000 (+0300) Subject: Fix crash in unit tests. X-Git-Tag: End2018~118 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1ee8948a5c407f3c4367ade4cf6ec6094b1938d1;p=modules%2Fshaper.git Fix crash in unit tests. Initialize color of removed segment through the configuration object. --- diff --git a/src/SketchPlugin/Test/TestSplitPreview.py b/src/SketchPlugin/Test/TestSplitPreview.py index c4bb13798..6cfdf582c 100644 --- a/src/SketchPlugin/Test/TestSplitPreview.py +++ b/src/SketchPlugin/Test/TestSplitPreview.py @@ -23,6 +23,9 @@ from salome.shaper import model from ModelAPI import * from GeomDataAPI import * +from ConfigAPI import * +Config_PropManager().registerProp("Visualization", "operation_remove_feature_color", "Color of removed feature in operation", Config_Prop.Color, "255, 174, 201") + # base sketch model.begin() partSet = model.moduleDocument() diff --git a/src/SketchPlugin/Test/TestTrimPreview.py b/src/SketchPlugin/Test/TestTrimPreview.py index 0f018cf18..2361d369b 100644 --- a/src/SketchPlugin/Test/TestTrimPreview.py +++ b/src/SketchPlugin/Test/TestTrimPreview.py @@ -23,6 +23,9 @@ from salome.shaper import model from ModelAPI import * from GeomDataAPI import * +from ConfigAPI import * +Config_PropManager().registerProp("Visualization", "operation_remove_feature_color", "Color of removed feature in operation", Config_Prop.Color, "255, 174, 201") + # base sketch model.begin() partSet = model.moduleDocument()