Hier eine schnelle (nicht ideale) Lösung:oh... well?! hat geschrieben:Den Error bekomm ich auch. Hab bis jetzt nur absolut keine Ahnung warum, weil es für mich keinen Sinn macht. Also irgendwie liegt der Fehler in der GroupParticle() Procedure. Vielleicht stimmt was mit der Logik einfach nich... wär erfreut wenn ihr da helfen könntet.
zum Erklären:
Vor jeden If constraint()\p1\... ein If constraint()\p1 setzen.
ein Beispiel:
Code: Alles auswählen
;Render Constraints
ForEach constraint()
If constraint()\p1\image=0 And constraint()\p2\image=0
FrontColor(RGB(255,0,100))
LineXY(constraint()\p1\p\x,constraint()\p1\p\y,constraint()\p2\p\x,constraint()\p2\p\y)
EndIf
Next
Code: Alles auswählen
;Render Constraints
ForEach constraint()
If constraint()\p1
If constraint()\p1\image=0 And constraint()\p2\image=0
FrontColor(RGB(255,0,100))
LineXY(constraint()\p1\p\x,constraint()\p1\p\y,constraint()\p2\p\x,constraint()\p2\p\y)
EndIf
EndIf
Next