Fix area splitting from action zone flipping viewports
authorDalai Felinto <dfelinto@gmail.com>
Tue, 4 Dec 2018 19:30:23 +0000 (17:30 -0200)
committerDalai Felinto <dfelinto@gmail.com>
Tue, 4 Dec 2018 19:42:31 +0000 (17:42 -0200)
commit7c56ac235562815231b195fd5a4dd4515353c0dd
tree269983942c82d8b815a48b25e39abab0b0ba8937
parentbaf89af0f5fedf0d693a9a74e690b3ca7d8ff292
Fix area splitting from action zone flipping viewports

The top-left and bottom-right corners were creating the new area in the
wrong place.

Blender 2.7x only had action zone corners in the top-right, and
bottom-left corners. So it had some hardcoded assumptions based on that.

This commit feels a bit like a hack, but I think it may be fine.

Bug reported via IRC, how to reproduce:

* Change shading to Rendered.
* Split viewport from the top-left corner.
source/blender/editors/screen/screen_ops.c