HISE Logo Forum
    • Categories
    • Register
    • Login

    getGlobalPositionY returns wrong value

    Scheduled Pinned Locked Moved Bug Reports
    2 Posts 2 Posters 174 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Casey KolbC
      Casey Kolb
      last edited by

      This is a really simple fix. It looks like there's the tiniest typo in "ScriptingApiContent.cpp".

      Screen Shot 2020-05-31 at 6.54.14 PM.png

      Line 725 should read:

      return thisY + p->getGlobalPositionY();
      

      Just swap X for Y ☺

      Casey Kolb
      Founder & CEO of Lunacy Audio
      Composer | Producer | Software Developer

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @Casey Kolb
        last edited by

        @Lunacy-Audio Good catch, I remember having a hard time a long time ago trying to get the globalPos inside a parent for a custom graph EQ...
        That's fixed, @d-healey I've made a pull request ;)

        Can't help pressing F5 in the forum...

        1 Reply Last reply Reply Quote 2
        • First post
          Last post

        25

        Online

        1.8k

        Users

        12.1k

        Topics

        104.9k

        Posts