[Bugfix] UIFrame: Zero-size frame with clip_children causes inconsistent state #226
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:procgen
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
john/McRogueFace#226
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
If
clip_children=Trueis set on a Frame with size(0, 0), the RenderTexture creation is skipped but the state becomes inconsistent.Root Cause
In
UIFrame::render()lines 118-125:And in
UIFrame::init()lines 632-634:Problem Scenarios
clip_children=True, size=(0,0)(100, 100)render()runs, butuse_render_textureis already being checked...Proposed Fix
Either:
set_float_memberfor w/h)clip_children=Trueon zero-size frames (raise error)