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 property hint class name type string restriction and replace mode #79139

Merged

Conversation

aaronfranke
Copy link
Member

@aaronfranke aaronfranke commented Jul 7, 2023

Before, the type restriction hint (like "Node") was ignored, and the dialog was set up for creation, not replacing:

Screenshot 2023-07-06 at 11 09 11 PM

After, it will respect the type restriction hint, and the dialog will be set up for replacement:

Screenshot 2023-07-06 at 11 05 52 PM

I added the import label to this PR because this property type is currently only used in one place, scene import.

@aaronfranke aaronfranke added this to the 4.2 milestone Jul 7, 2023
@aaronfranke aaronfranke requested a review from a team July 7, 2023 04:15
@akien-mga
Copy link
Member

Does this fix #78140?

@akien-mga akien-mga added the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Jul 7, 2023
@kdiduk
Copy link
Contributor

kdiduk commented Jul 7, 2023

Does this fix #78140?

No, it doesn't. I've just tested it.

@akien-mga akien-mga merged commit 7e36223 into godotengine:master Jul 10, 2023
@akien-mga
Copy link
Member

Thanks!

@aaronfranke aaronfranke deleted the prop-hint-cl-na-type-str-restr-repl branch July 10, 2023 15:34
@YuriSizov YuriSizov removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Jul 10, 2023
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants