Fix #33525: Mask points are add offset for the mouse when adding on viewer node with aspect != 1
It was strange logic in code from 2010 which forced image aspect to be 1 for viewer nodes and render results. Not sure why it's needed, was only used for unwrapping aspect correction, but render result/viewer images are already handled differently there.
This commit is contained in:
@@ -194,9 +194,7 @@ void ED_space_image_get_size_fl(SpaceImage *sima, float size[2])
|
||||
void ED_space_image_get_aspect(SpaceImage *sima, float *aspx, float *aspy)
|
||||
{
|
||||
Image *ima = sima->image;
|
||||
if ((ima == NULL) || (ima->type == IMA_TYPE_R_RESULT) || (ima->type == IMA_TYPE_COMPOSITE) ||
|
||||
(ima->aspx == 0.0f || ima->aspy == 0.0f))
|
||||
{
|
||||
if ((ima == NULL) || (ima->aspx == 0.0f || ima->aspy == 0.0f)) {
|
||||
*aspx = *aspy = 1.0;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user