mirror of
https://github.com/godotengine/godot
synced 2024-11-05 16:53:09 +00:00
051ef479c9
This commit adds a condition to VariantCaster that casts Variants of type OBJECT to any type T, if T is derived from Object. This change enables a fair bit of code cleanup. First, the Variant implicit cast operators for Node and Control can be removed, which allows for some invalid includes to be removed. Second, helper methods in Tree whose sole purpose was to cast arguments to TreeItem * are no longer necessary. A few small changes also had to be made to other files, due to the changes cascading down all the includes. |
||
---|---|---|
.. | ||
scene_debugger.cpp | ||
scene_debugger.h | ||
SCsub |