Blender Git Commit Log

Git Commits -> Revision a1ffb49

Revision a1ffb49 by Sergey Sharybin (master)
January 22, 2015, 09:12 (GMT)
Fix T43120: Cycles mapping node rotation order is different from viewport

Root of the issue goes to the fact that since the very beginning Cycles was
using ZYX euler rotation for mapping shader node but blender was always
using XYZ euler rotation.

This commit switches Cycles to use XYZ euler order and adds versioning code
to preserve backward compatibility.

There was no really nice solution here because either we're ending up with
versioning code or we'll need to deal with all sort of exceptions from blender
side in order to support ZYX order for the mapping node. The latest one is
also creepy from the other render engines points of view -- that might break
compatibility with existing bindings or introduce some extra headache for them
in the future.

This could also become a PITA for us with need of supporting all sort of weird
and wonderful exceptions in the refactored viewport project.

NOTE: This commit breaks forward compatibility, meaning opening new files in
older blender might not give proper result if Mapping node was used.

Also, libraries are to be re-saved separately from the scene file, otherwise
versioning code for them wouldn't run if scene file was re-saved with new
version of blender.

Reviewers: brecht, juicyfruit, campbellbarton

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D973

Commit Details:

Full Hash: a1ffb49e494deac6cf6d3bcca45c046d9acdfad1
Parent Commit: 1aa8f0d
Lines Changed: +61, -3

3 Modified Paths:

/intern/cycles/blender/addon/version_update.py (+57, -0) (Diff)
/intern/cycles/util/util_transform.h (+3, -2) (Diff)
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021