summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/parameter')
-rw-r--r--src/live_effects/parameter/satellitesarray.cpp7
-rw-r--r--src/live_effects/parameter/satellitesarray.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/live_effects/parameter/satellitesarray.cpp b/src/live_effects/parameter/satellitesarray.cpp
index e61aaf38d..db7cf80c0 100644
--- a/src/live_effects/parameter/satellitesarray.cpp
+++ b/src/live_effects/parameter/satellitesarray.cpp
@@ -33,6 +33,7 @@ SatellitesArrayParam::SatellitesArrayParam(const Glib::ustring &label,
_knot_color = 0xAAFF8800;
_helper_size = 0;
_use_distance = false;
+ _global_knot_hide = false;
_effectType = FILLET_CHAMFER;
_last_pathvector_satellites = NULL;
}
@@ -57,6 +58,10 @@ void SatellitesArrayParam::setUseDistance(bool use_knot_distance)
_use_distance = use_knot_distance;
}
+void SatellitesArrayParam::setGlobalKnotHide(bool global_knot_hide)
+{
+ _global_knot_hide = global_knot_hide;
+}
void SatellitesArrayParam::setEffectType(EffectType et)
{
_effectType = et;
@@ -331,7 +336,7 @@ void FilletChamferKnotHolderEntity::knot_set(Geom::Point const &p,
Geom::Point FilletChamferKnotHolderEntity::knot_get() const
{
- if (!_pparam->_last_pathvector_satellites) {
+ if (!_pparam->_last_pathvector_satellites || _pparam->_global_knot_hide) {
return Geom::Point(Geom::infinity(), Geom::infinity());
}
Geom::Point tmp_point;
diff --git a/src/live_effects/parameter/satellitesarray.h b/src/live_effects/parameter/satellitesarray.h
index a52bcef53..30b1db6c1 100644
--- a/src/live_effects/parameter/satellitesarray.h
+++ b/src/live_effects/parameter/satellitesarray.h
@@ -55,6 +55,7 @@ public:
}
void param_transform_multiply(Geom::Affine const &postmul, bool /*set*/);
void setUseDistance(bool use_knot_distance);
+ void setGlobalKnotHide(bool global_knot_hide);
void setEffectType(EffectType et);
void setPathVectorSatellites(PathVectorSatellites *pathVectorSatellites);
void set_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint32 color);
@@ -75,6 +76,7 @@ private:
Geom::PathVector _hp;
int _helper_size;
bool _use_distance;
+ bool _global_knot_hide;
EffectType _effectType;
PathVectorSatellites *_last_pathvector_satellites;