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

Fixing GD Paint Issues in 4.0-dev #741

Merged
merged 1 commit into from
May 8, 2022
Merged

Fixing GD Paint Issues in 4.0-dev #741

merged 1 commit into from
May 8, 2022

Conversation

voylin
Copy link
Contributor

@voylin voylin commented May 7, 2022

The clipping happened because the panel was see-through.
The saving is also fixed by changing some of the project settings.
To fix the issues from #734

@aaronfranke aaronfranke added this to the 4.0 milestone May 7, 2022
@aaronfranke aaronfranke added the bug label May 7, 2022
Copy link
Member

@aaronfranke aaronfranke left a comment

Choose a reason for hiding this comment

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

Thanks for these fixes! It works well on my system. But the panel's background color seems a bit bright.

2d/gd_paint/paint_root.tscn Outdated Show resolved Hide resolved
@voylin
Copy link
Contributor Author

voylin commented May 7, 2022

Thanks for these fixes! It works well on my system. But the panel's background color seems a bit bright.

You're welcome. I'm glad that I found out what was causing that strange saving bug.

@@ -95,7 +95,7 @@ func brush_color_changed(color):

func background_color_changed(color):
# Change the background color to whatever colorthe background color picker is.
get_parent().get_node(^"DrawingAreaBG").modulate = color
get_parent().find_child(^"DrawingAreaBG").modulate = color
Copy link
Member

Choose a reason for hiding this comment

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

Why was this changed? This should still be get_node.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Aah that got changed because I was testing with viewport containers instead. It was during the testing of SubViewports that I discovered the solution. Will change it right now!

@voylin voylin requested a review from aaronfranke May 8, 2022 00:09
The clipping happened because the panel was see-through.
The saving is also fixed by changing some of the project settings.

Update 2d/gd_paint/paint_root.tscn

Co-authored-by: Aaron Franke <[email protected]>
changeback to get_node
@aaronfranke aaronfranke merged commit c9193d1 into godotengine:4.0-dev May 8, 2022
@aaronfranke
Copy link
Member

Thanks for all of your work!

@voylin
Copy link
Contributor Author

voylin commented May 8, 2022

Thanks for all of your work!

I'm happy that I can help. ^^/

@voylin voylin deleted the FixGDPaintDemo branch May 8, 2022 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants