GithubHelp home page GithubHelp logo

Comments (13)

1vanK avatar 1vanK commented on May 22, 2024

Рабочая версия: codecat/angelscript-mirror@2f1d5f2

В следующем коммите возникают ассерты в отладочной версии codecat/angelscript-mirror@4fea513 а в релизной версии эта ошибка

from urho3d.

1vanK avatar 1vanK commented on May 22, 2024

В последних версиях AS ассерт пофикшен, но ошибка остается

from urho3d.

1vanK avatar 1vanK commented on May 22, 2024

Ошибка возникает тут EditorResourceBrowser.as

int GetResourceType(String path, StringHash &out fileType, bool useCache = false)
{
    if (GetExtensionType(path, fileType) || GetBinaryType(path, fileType, useCache) || GetXmlType(path, fileType, useCache))
        return GetResourceType(fileType);

    return RESOURCE_TYPE_UNKNOWN;
}

При выделении модели в браузере ресурсов, внутри функции GetBinaryType() fileType устанавливается в правильное значение, но когда значение передается дальше в функцию GetResourceType(), то оно сбрасывается в ноль

from urho3d.

1vanK avatar 1vanK commented on May 22, 2024

@orefkov там ты в коммите поломанном указан, есть идеи?

from urho3d.

1vanK avatar 1vanK commented on May 22, 2024

Выглядит так, что когда параметр &out передаётся из функции в функции он невзначай очищается между вызовами

from urho3d.

1vanK avatar 1vanK commented on May 22, 2024

Может там &inout нужен или что-то вроде этого

from urho3d.

1vanK avatar 1vanK commented on May 22, 2024

Блин, а сработало. Теперь все &out по скриптам шерстить(

from urho3d.

orefkov avatar orefkov commented on May 22, 2024

Лучше тогда вообще не указывать - тогда параметр считается inout.

from urho3d.

1vanK avatar 1vanK commented on May 22, 2024

Ну это баг полюбому, типа если я переменную &out прокидываю во вложенный вызов, она же все равно &out

from urho3d.

1vanK avatar 1vanK commented on May 22, 2024

У тебя на готове нет микропримера, чтобы проверить такое изолированно?

from urho3d.

1vanK avatar 1vanK commented on May 22, 2024

Чтоб пофиксилось достаточно bool GetExtensionType(String path, StringHash &out fileType) поменять

from urho3d.

1vanK avatar 1vanK commented on May 22, 2024

Написал ему на мыло

from urho3d.

1vanK avatar 1vanK commented on May 22, 2024

Добавил временный workaround, но issue закрыть не буду

from urho3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.