]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix crash in unit tests.
authorazv <azv@opencascade.com>
Wed, 5 Dec 2018 05:49:21 +0000 (08:49 +0300)
committerazv <azv@opencascade.com>
Wed, 5 Dec 2018 05:49:21 +0000 (08:49 +0300)
Initialize color of removed segment through the configuration object.

src/SketchPlugin/Test/TestSplitPreview.py
src/SketchPlugin/Test/TestTrimPreview.py

index c4bb13798441639e4ecd4b0799a8e88a09beea4b..6cfdf582c1f924262e15e8c732e6e382e538fc45 100644 (file)
@@ -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()
index 0f018cf18e6afb5aff562966af02d1d5ca9a9ff2..2361d369b01a018bda161c0266fa734aed848f29 100644 (file)
@@ -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()