Fix T52299: X resolution of 4 causes nodes to collapse
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 13 Sep 2017 13:29:37 +0000 (18:29 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 13 Sep 2017 13:31:36 +0000 (18:31 +0500)
commit6f633dec5d105ad91dcb5774a6fd4fb06bf264a5
treefbba368806f675b7881cfc8a8aea5ef01f093587
parent32449e1b21359c867c14d8b880e14960002a72aa
Fix T52299: X resolution of 4 causes nodes to collapse

Was caused by numeric overflow when calculating preview dimensions.
Now we try to avoid really insance preview resolutions by fitting
aspect into square.
source/blender/compositor/intern/COM_compositor.cpp