Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

chain of child can not contain twice the same module #247

Closed
charlyoleg opened this Issue · 1 comment

2 participants

@charlyoleg

Two different modules using child can be chained in an expression. But a modules using child can only be used once in an expression!

// ob_child_chain.scad

// openscad issue
// two different modules using child can be chained in an expression
// but a modules using child can only be used once in an expression!

module flip_x(){
  rotate([180,0,0])
  child(0);
}

module flip_y(){
  rotate([0,180,0])
  child(0);
}

// this works
//flip_x() flip_y() cube([1,1,3]);

// this makes the following error message:
// WARNING: Ignoring recursive module instantiation of 'rotate'.
flip_x() flip_x() cube([1,1,3]);

@kintel
Owner

Duplicate of #116

@kintel kintel closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.