[Bf-blender-cvs] [3caa830] master: Fix T49501: Animations imported via alembic render with wrong or no motion blur

Sergey Sharybin noreply at git.blender.org
Wed Oct 5 12:37:38 CEST 2016


Commit: 3caa830c113ffc576f9b6d41365adc7799a1075c
Author: Sergey Sharybin
Date:   Wed Oct 5 12:37:09 2016 +0200
Branches: master
https://developer.blender.org/rB3caa830c113ffc576f9b6d41365adc7799a1075c

Fix T49501: Animations imported via alembic render with wrong or no motion blur

===================================================================

M	source/blender/blenkernel/intern/object.c

===================================================================

diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index d87c257..a059055 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -3212,6 +3212,14 @@ static bool constructive_modifier_is_deform_modified(ModifierData *md)
 		ScrewModifierData *smd = (ScrewModifierData *)md;
 		return smd->ob_axis != NULL && object_moves_in_time(smd->ob_axis);
 	}
+	else if (md->type == eModifierType_MeshSequenceCache) {
+		/* NOTE: Not ideal because it's unknown whether topology changes or not.
+		 * This will be detected later, so by assuming it's only deformation
+		 * going on here we allow to bake deform-only mesh to Alembic and have
+		 * proper motion blur after that.
+		 */
+		return true;
+	}
 	return false;
 }




More information about the Bf-blender-cvs mailing list