Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A new event Visual Attributes Changed is defined for performance sake.
[modules/shaper.git]
/
src
/
SketchPlugin
/
SketchPlugin_ConstraintLength.cpp
diff --git
a/src/SketchPlugin/SketchPlugin_ConstraintLength.cpp
b/src/SketchPlugin/SketchPlugin_ConstraintLength.cpp
index 1ba4aa081ff9e54a91a7af1b61fb40fd824aa74a..ad6ee92b540721d4df98d217917d2eee2c9efc47 100644
(file)
--- a/
src/SketchPlugin/SketchPlugin_ConstraintLength.cpp
+++ b/
src/SketchPlugin/SketchPlugin_ConstraintLength.cpp
@@
-19,6
+19,7
@@
#include "SketchPlugin_ConstraintLength.h"
#include <SketchPlugin_Line.h>
#include "SketchPlugin_ConstraintLength.h"
#include <SketchPlugin_Line.h>
+#include <SketchPlugin_Tools.h>
#include <GeomDataAPI_Point2D.h>
#include <GeomDataAPI_Point2D.h>
@@
-171,6
+172,8
@@
AISObjectPtr SketchPlugin_ConstraintLength::getAISObject(AISObjectPtr thePreviou
AISObjectPtr anAIS = SketcherPrs_Factory::lengthDimensionConstraint(this,
sketch(), thePrevious);
AISObjectPtr anAIS = SketcherPrs_Factory::lengthDimensionConstraint(this,
sketch(), thePrevious);
+ if (anAIS.get() && !thePrevious.get())
+ SketchPlugin_Tools::setDimensionColor(anAIS);
return anAIS;
}
return anAIS;
}