Page 1 of 1

Distributing lights doesn't work

Posted: Wed Jun 06, 2018 2:33 pm
by Elendurwen
I am trying to use the distribute tag in order to randomly placed some lights:

Code: Select all

<distribute> <position method="uniform" min="-2,-2,0" max="2,2,0" /> <orientation method="uniform" min="0,0,0" max="360,0,0" /> <entity quantity="5" max_trials="100"> <light id="wallLight" color="yellow" intensity="1.0" medium="leds" /> </entity> </distribute>
However, this gives an error

Code: Select all

Error inserting a light entity with id "wallLight0". An entity with that id already exists.

Re: Distributing lights doesn't work

Posted: Wed Jun 06, 2018 2:40 pm
by pincy
Can you post this bugreport on GitHub? I'll have a look at it today.

Re: Distributing lights doesn't work

Posted: Wed Jun 06, 2018 4:30 pm
by Elendurwen
Done

Re: Distributing lights doesn't work

Posted: Wed Jun 06, 2018 6:01 pm
by pincy
beta51 solves this issue.