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 disconnection between Gizmo and inspector values on BakedLightmap #45510

Merged
merged 1 commit into from
Jan 28, 2021
Merged

Conversation

TamplierS1
Copy link

@TamplierS1 TamplierS1 commented Jan 27, 2021

After adding _change_notify("extents"); to set_extents() method in BakedLightmap class
the issue was fixed

Bugsquad edit: This closes #45317.

@Calinou Calinou added this to the 3.2 milestone Jan 27, 2021
@@ -1055,6 +1055,7 @@ float BakedLightmap::get_capture_cell_size() const {
void BakedLightmap::set_extents(const Vector3 &p_extents) {
extents = p_extents;
update_gizmo();
_change_notify("extents");
_change_notify("bake_extents");
Copy link
Member

@Calinou Calinou Jan 27, 2021

Choose a reason for hiding this comment

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

Should _change_notify("bake_extents"); below be removed? I guess the bake_extents property was renamed to extents, making that line no longer relevant.

Copy link
Author

Choose a reason for hiding this comment

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

That makes sense. I removed it from set_extents()

@akien-mga
Copy link
Member

Could you squash the two commits into one? See PR workflow.

@akien-mga akien-mga requested a review from JFonS January 27, 2021 20:02
After adding `_change_notify("extents");` to `set_extents()` method in `BakedLightmap` class
the issue was fixed

Fix disconnection between Gizmo and inspector values on BakedLightmap

Remove unnecessary `_change_notify("bake_extents")` call from `set_extents()`
@TamplierS1 TamplierS1 closed this Jan 28, 2021
@TamplierS1 TamplierS1 reopened this Jan 28, 2021
@akien-mga akien-mga merged commit cea561e into godotengine:3.2 Jan 28, 2021
@akien-mga
Copy link
Member

akien-mga commented Jan 28, 2021

Thanks! And congrats for your first merged Godot contribution 🎉

@akien-mga akien-mga modified the milestones: 3.2, 3.3 Apr 20, 2021
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.

3 participants