Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

Getting the globalPosition of a parent node is crashing the app

$
0
0

@edapx wrote:

Hello, I'm trying to get the gloabl position of a parent node, but the app crashes with the error: Thread 1: EXC_BAD_ACCESS

To reproduce the error, is enough to put this code in the setup method:

    auto bla = ofNode();
    bla.boom(200);
    auto blu = ofNode(bla);
    blu.getGlobalPosition();
    blu.getParent()->getGlobalPosition();

Does anyone has experienced something similar? is this the proper way to get the global position of a parent node without accessing it directly?

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles