filter: Accept floating-point values for FilterManager mul= parameter

Fixes #1231
Closes #1232
This commit is contained in:
rdb 2022-01-07 10:14:30 +01:00
parent 99c133a7f5
commit b736b3e4db
2 changed files with 3 additions and 2 deletions

View File

@ -122,8 +122,8 @@ class FilterManager(DirectObject):
winy = winy // div
if mul != 1:
winx = winx * mul
winy = winy * mul
winx = int(round(winx * mul))
winy = int(round(winy * mul))
return winx,winy

View File

@ -45,6 +45,7 @@ Miscellaneous
* Fix nodes with same tag key but different value getting flattened together
* taskMgr.step() now restores previous SIGINT handler afterwards (#1180)
* Add base.clock as alias for globalClock
* FilterManager mul parameter now accepts floating-point values (#1231)
* Assorted minor API documentation improvements
* Fix memory leak getting Bullet persistent manifolds from Python (#1193)
* Add missing property interface to PlaneNode