Fix T45390: Cycles experimental displacement method ignores scaling when render
From artists perspective it makes sense to always apply displacement in a local space. TODO: Double-check that BVH is being packed properly. From quick tests seems it's all fine, but might be missing some obvious failure still.
This commit is contained in:
@@ -512,7 +512,9 @@ void ObjectManager::apply_static_transforms(DeviceScene *dscene, Scene *scene, u
|
||||
|
||||
/* apply transforms for objects with single user meshes */
|
||||
foreach(Object *object, scene->objects) {
|
||||
if(mesh_users[object->mesh] == 1) {
|
||||
if(mesh_users[object->mesh] == 1 &&
|
||||
object->mesh->displacement_method == Mesh::DISPLACE_BUMP)
|
||||
{
|
||||
if(!(motion_blur && object->use_motion)) {
|
||||
if(!object->mesh->transform_applied) {
|
||||
object->apply_transform(apply_to_motion);
|
||||
|
Reference in New Issue
Block a user