result node in modellayer

classic Classic list List threaded Threaded
3 messages Options
liugaijin liugaijin
Reply | Threaded
Open this post in threaded view
|

result node in modellayer



when I did the test, I found:
when the orientation is set or the location is set, the result node is right.
when the orientation is set and the location is set, the result node is the node named "pat", not the node named "geo". but the result node should be the node named "geo".

looking forward to your reply!
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: result node in modellayer

Thank you. I think removing the "else" would be correct, do you agree?
        if (options().location().isSet())
        {
            geo = new GeoTransform();
            geo->setPosition(options().location().get());
            if (pat)
                geo->addChild(pat);
            modelNodeParent = geo;
        }
Glenn Waldron / Pelican Mapping
liugaijin liugaijin
Reply | Threaded
Open this post in threaded view
|

Re: result node in modellayer



After I test, I think you cannot removing the "else" sentence. It will be correct, like the change in the snap shot shown.

just try it.