[OpenSCAD] Light source and default camera position different on command line

nop head nop.head at gmail.com
Mon Sep 24 12:13:13 EDT 2018


Actually there is no currently selected colourscheme when using the command
line. The default is hard coded to cornfield, regardless of what is
selected in the GUI.

On 24 September 2018 at 15:03, nop head <nop.head at gmail.com> wrote:

> The problem is moving this code from cmdline() to main() because ColorMap
> needs application path to registered.
>
> #ifdef OPENSCAD_QTGUI
>     QCoreApplication app(argc, argv);
>     const std::string application_path = QCoreApplication::instance()->
> applicationDirPath().toLocal8Bit().constData();
> #else
>     const std::string application_path = fs::absolute(boost::
> filesystem::path(argv[0]).parent_path()).generic_string();
> #endif
>
> Having two QT app instances seems to be a problem, no surprise there! Is
> there a reason for preferring the QT version? The boost version produces
> the same path on my system so using that solves the problem.
>
>
> On 24 September 2018 at 14:39, nop head <nop.head at gmail.com> wrote:
>
>> Yes, easy, but I have found that a side effect of accessing the ColorMap
>> class early is to make the GUI lock up at the splash screen.
>>
>> On 24 September 2018 at 14:24, Rogier Wolff <R.E.Wolff at bitwizard.nl>
>> wrote:
>>
>>> On Mon, Sep 24, 2018 at 02:19:11PM +0100, nop head wrote:
>>>
>>> >   --colorscheme arg     colorscheme: Cornfield | Metallic | Sunset |
>>> > Starnight
>>>
>>> Would it be possible to print a "*" next to the currently selected
>>> colorscheme? That would normally be the default one, but it should be
>>> the "currently selected" that is tagged to accomodate configurations
>>> where say an environment variable changes the default.
>>>
>>>         Roger.
>>>
>>> --
>>> ** R.E.Wolff at BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998
>>> **
>>> **    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233
>>> **
>>> *-- BitWizard writes Linux device drivers for any device you may have!
>>> --*
>>> The plan was simple, like my brother-in-law Phil. But unlike
>>> Phil, this plan just might work.
>>>
>>> _______________________________________________
>>> OpenSCAD mailing list
>>> Discuss at lists.openscad.org
>>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20180924/ddc232ea/attachment.html>


More information about the Discuss mailing list