diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2016-04-18 18:45:34 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2016-05-06 11:40:18 +0300 |
commit | 7ecc159f378e5bddfdb7aae8ac7784d3ca3f87fc (patch) | |
tree | dce90019fdc45623d02b5260f0f5d6f96eb77907 /source/blender/makesrna/intern/rna_cloth.c | |
parent | 8cc4f3f52ae6b6b2b74cf7a2e3e72221982b317b (diff) |
Force Fields: Fix Texture with both Use Coordinates and 2D enabled.
From description, Use Coordinates evaluates the texture using
target coordinates in the local space of the force field object.
2D is supposed to ignore the Z coordinate. Thus one would assume
that if both are enabled, the force field effect would move with
the force field object, and Z would be 0.
However, instead first the 2D option projects points onto a plane
passing through the global zero and orthogonal to the local Z,
and only then the resulting point is transformed into local space.
Z is not locked at 0, so procedural textures like Spherical Blend
don't work as expected.
To fix this, apply local transform first, and then just clear Z if 2D.
Diffstat (limited to 'source/blender/makesrna/intern/rna_cloth.c')
0 files changed, 0 insertions, 0 deletions