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

Make copy & paste params skip resource_path #85362

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

Flavelius
Copy link
Contributor

@Flavelius Flavelius commented Nov 25, 2023

Resource path should not be attempted to be taken over, as that's not intended for copy-paste and fails anyway, but this results in the whole paste operation failing as well.
This change skips it in the copy part, but there could be an argument for skipping it in the paste operation.

fixes #42415

Resource path should not be attempted to be taken over, as that's not intended for copy-paste and fails anyway, but this results in the whole paste operation failing as well
@YeldhamDev YeldhamDev added this to the 4.x milestone Nov 26, 2023
@akien-mga akien-mga requested a review from KoBeWi November 26, 2023 12:09
Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of hard-coding every non-copiable property I think we should add something like PROPERTY_USAGE_SKIP_COPY.

This solution is ok for now though.

@YuriSizov YuriSizov modified the milestones: 4.x, 4.3 Dec 13, 2023
@YuriSizov YuriSizov changed the title Make Copy->paste Params skip resource_path Make copy & paste params skip resource_path Dec 14, 2023
@YuriSizov YuriSizov merged commit a3024d0 into godotengine:master Dec 14, 2023
15 checks passed
@YuriSizov
Copy link
Contributor

Thanks, and congrats on your first merged Godot contribution! (Was it really the first one for you? Quite unexpected 🙂 )

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.

Copy paste parameters not persistent (on material)
4 participants