ConditionSwitch() will override child displayable position properties with the previous child's position properties
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ren'Py |
Fix Released
|
Medium
|
Tom Rothamel |
Bug Description
The following code would be expected to display 'Right' on the right and 'Left' on the left; instead, the first time 'Left' is displayed, it will be on the right side, as a result of the fact that ConditionSwitches call update_state before rendering their children.
image test = ConditionSwitch
$ pos = 'right'
show test
"Test on right"
$ pos = 'left'
"Test should be on left."
"Test should be on left again."
Moving the call to self.update_state() in renpy.display.
Changed in renpy: | |
status: | Fix Committed → Fix Released |
That first patch causes a traceback on at least some ATL animations (for example,
show expression im.Composite( (1600,600) ,
(0,0), current_ cell.background (),
(800,0) ,current_ cell.background (new_facing) ) behind border:
ypos 32
xpos 208
anchor (0,0)
linear .5 xpos (208-800)
since apparently the child is first set inside update_state. A possibly better patch is attached.