Skip to content

[Custom Block Shape] Resize notches and reports upon registration#191

Open
Steve0Greatness wants to merge 1 commit intoPenguinMod:developfrom
Steve0Greatness:custom-block-shape-resize-on-register
Open

[Custom Block Shape] Resize notches and reports upon registration#191
Steve0Greatness wants to merge 1 commit intoPenguinMod:developfrom
Steve0Greatness:custom-block-shape-resize-on-register

Conversation

@Steve0Greatness
Copy link

Resizes custom notches and empty reporter slots upon registration of their respective parts, rather than waiting for a settings update. This does as little computation as is possible, such as relying on cached values, rather than doing such computations at registration. This does seem to miss registrations done prior to the addon running, however, those get handled by the applyChanges function already, so I'm not concerned about this, what this patch is concerned with in particular is actually the post-load registrations, which aren't handled by the applyChanges function until there is a change in settings, as there wouldn't have been a change in settings.

Resizes custom notches and empty reporter slots upon registration of
their respective parts, rather than waiting for a settings update. This
does as little computation as is possible, such as relying on cached
values, rather than doing such computations at registration. This does
seem to miss registrations done prior to the addon running, however,
those get handled by the applyChanges function already, so I'm not
concerned about this, what this patch is concerned with in particular is
actually the post-load registrations, which aren't handled by the
applyChanges function.
@the-can-of-soup
Copy link

You are a lifesaver thank you 🙏

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.

2 participants