Book a Demo

Author Topic: Sub-shape anomalies in connector shapescripts.  (Read 3138 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Sub-shape anomalies in connector shapescripts.
« on: February 01, 2016, 11:17:49 am »
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:
Code: [Select]
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
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!