Quantcast
Viewing all articles
Browse latest Browse all 40524

Getting the globalPosition of a parent node is crashing the app

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?


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>