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

Remove redundant code in Node3D #89753

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AThousandShips
Copy link
Member

I don't know this code well enough to know if the entire block isn't redundant, I'm not sure what the need for assigning local_transform is here if we're just taking the existing transform, as we'll update the dirty transform later anyway, but keeping the change small for the moment

Followup to:

} else {
data.local_transform = get_transform();
}
data.local_transform = get_transform();
_replace_dirty_mask(DIRTY_EULER_ROTATION_AND_SCALE); // As local transform was updated, rot/scale should be dirty.
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm honestly unsure if this is valid, there's no change to that part of the transform here, so maybe the whole block should be removed, but haven't tested the details and unsure what to look for

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.

1 participant