Forum

    • Register
    • Login
    • Search
    • Categories

    getGlobalPositionY returns wrong value

    Bug Reports
    2
    2
    74
    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 Kolb
      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

      ustk 1 Reply Last reply Reply Quote 0
      • ustk
        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 😉

        Tired to press F5 in the forum...
        Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

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

        23
        Online

        795
        Users

        5.5k
        Topics

        51.6k
        Posts