Stellarium / stellarium

Stellarium is a free GPL software which renders realistic skies in real time with OpenGL. It is available for Linux/Unix, Windows and macOS. With Stellarium, you really see what you can see with your eyes, binoculars or a small telescope.
https://stellarium.org
GNU General Public License v2.0
7.54k stars 813 forks source link

Vec3f script error #3337

Closed kajaji closed 1 year ago

kajaji commented 1 year ago

Setting colors in scripts does not work. My scripts are old and didn't have issues as I remember, but running them under version 1.1 produces an error. The current scripting documentation matches my code.

Expected Behaviour

Set color as documented in http://stellarium.org/doc/head/scripting.html

Actual Behaviour

A script error: script error: 'Reference' @ line 1: ReferenceError: Vec3f is not defined

Steps to reproduce

Use any set color like: ConstellationMgr.setLinesColor(Vec3f(1.0,0.0,0.0));

System

10110111 commented 1 year ago

Does it still happen with the latest version of Stellarium?

kajaji commented 1 year ago

Yes. Tested on V 23.2

gzotti commented 1 year ago

Please read the section 17.5.2 about Vec3f in the User Guide.

kajaji commented 1 year ago

Thanks. It's working using the sample code in the guide.