In a connector shapescript, I can use sub-shapes within shape main with no (apparent) problem. However, if I transfer the same code to shape source or shape target, the sub-shapes don't work any more. The code that calls the sub-shape appears to be executed (tests have shown this) but the sub-shape doesn't appear. Is this a bug?
Sample code:
if (HasTag("IsDerived","True"))
{
setorigin("C",15,0);
addsubshape("DerivedGlyph");
setorigin("C",0,0);
setpen(160,160,160,1);
}
shape DerivedGlyph
{
scalable="false";
setpen(0,0,128,2);
startpath();
moveto(0,5);
lineto(7,-5);
endpath();
strokepath();
}
Paolo