Skip to content

Several minor fixes to ModelWidget#21117

Merged
PunkPun merged 6 commits intoOpenRA:bleedfrom
abcdefg30:modelWidget
Oct 13, 2023
Merged

Several minor fixes to ModelWidget#21117
PunkPun merged 6 commits intoOpenRA:bleedfrom
abcdefg30:modelWidget

Conversation

@abcdefg30
Copy link
Copy Markdown
Member

See commits. (I suggest reviewing them in isolation.) There were a few unnecessary checks and unused variables. Caching values which don't need any calculations does not make any sense if they are immediately overwritten on change anyway. Light pitch and yaw were also ignored previously.


if (cachedVoxel == null)
return;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You remove cachedVoxel in the 4th commit. Why is this separated to the first commit?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I can merge both together if you want, this was just the first change I made on this file, see the commit description. (This condition was always false.)

Copy link
Copy Markdown
Member

@PunkPun PunkPun left a comment

Choose a reason for hiding this comment

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

The PR seems to have glitched shadows in the asset browser

In this PR

PR.mov

On bleed

Bleed.mov

@abcdefg30
Copy link
Copy Markdown
Member Author

Are you sure that this is wrong? On bleed we didn't use any light calculation at all. This is now using the same as ingame, so the light is coming at an angle. The thing is that the ground the shadow is projected on isn't rotated with the model in the UI.

@PunkPun
Copy link
Copy Markdown
Member

PunkPun commented Oct 13, 2023

IMO it's better to keep the original behaviour as it looks way better

@abcdefg30
Copy link
Copy Markdown
Member Author

Restored the light settings bleed (accidentally) used.

Copy link
Copy Markdown
Member

@PunkPun PunkPun left a comment

Choose a reason for hiding this comment

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

LGTM

@PunkPun PunkPun merged commit 72bb6c4 into OpenRA:bleed Oct 13, 2023
@abcdefg30 abcdefg30 deleted the modelWidget branch October 13, 2023 12:30
@PunkPun
Copy link
Copy Markdown
Member

PunkPun commented Oct 13, 2023

Changelog

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants