Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GDScript analyzer error when instantiating EditorPlugins. #93942

Merged
merged 1 commit into from
Jul 11, 2024

Commits on Jul 10, 2024

  1. Fix gdscript analyzer error when instantiating EditorPlugins.

    Editor code is not instantiable outside of the editor
    (https://github.com/godotengine/godot/blob/1d14c054a12dacdc193b589e4afb0ef319ee2aae/core/object/class_db.cpp#L369).
    This is fine for editor plugins and the like, but the GDScript analyzer
    balks at it, causing F5 runs to fail: godotengine#73525.
    
    Instead, we really just want to know if the type is abstract - so add
    a new ClassDB method to check that and nothing else.
    
    Update core/object/class_db.cpp
    
    Apply code review comments
    
    Co-Authored-By: Bryce <1522777+baptr@users.noreply.github.com>
    baptr authored and MikeSchulze committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    810fcc7 View commit details
    Browse the repository at this point in the history