-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Convert Nodepath properties to Object if "node_type" property hint has been set #83006
Convert Nodepath properties to Object if "node_type" property hint has been set #83006
Conversation
6de11bc
to
f9950f7
Compare
Related comment, but doesn't solve the issue. |
f9950f7
to
d454fe0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assume these were added by IDE
scene/property_utils.cpp
Outdated
@@ -31,8 +31,11 @@ | |||
#include "property_utils.h" | |||
|
|||
#include "core/config/engine.h" | |||
#include "core/object/object.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include "core/object/object.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup
scene/property_utils.cpp
Outdated
#include "core/templates/local_vector.h" | ||
#include "core/variant/array.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include "core/variant/array.h" |
scene/property_utils.cpp
Outdated
#include "core/object/script_language.h" | ||
#include "core/string/print_string.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include "core/string/print_string.h" |
Converting to draft since I realized that it wasn't as simple as I thought. Arrays are giving me currently a headache. |
d454fe0
to
6926783
Compare
@AThousandShips if you notice something that can be done differently, I'm all ears :) |
I'm currently taking a bit of a break for personal reasons so won't be able to do much complex work, but can take a look when I am able :) |
Yeah no worries, I just need someone more experienced with the source code than me to give feedback. You were just first one who replied. |
This fixes an issue when instantiating a scene, script's properties that have "node_type" hint set are read as a nodepath causing "revert" button to popup due variant mismatch.
before pr:
2023-10-08.19-47-00.mp4
pr:
2023-10-08.19-39-25.mp4