[Bf-blender-cvs] [fcc3227efd8] master: Fix T86654: wrong Vertex Interpolation option default when importing alembic caches

Philipp Oeser noreply at git.blender.org
Fri Apr 2 21:22:46 CEST 2021


Commit: fcc3227efd837de2733dd79d9f8baf9c3b6d01a8
Author: Philipp Oeser
Date:   Thu Apr 1 16:34:43 2021 +0200
Branches: master
https://developer.blender.org/rBfcc3227efd837de2733dd79d9f8baf9c3b6d01a8

Fix T86654: wrong Vertex Interpolation option default when importing alembic caches

This resulted in bad motion blur from alembic animation when imported
after rB83980506957c (because it was now OFF by default).
When imported in a version prior to rB83980506957c and saved, this was
still working fine.

Vertex interpolation option introduced in rBbab2260b59c7 was defaulting
to ON (correct) in that commit, but was lost in rB83980506957c.

Now switch this to ON by default again.

Note: if you have a file that was (incorrectly) imported with a version
after rB83980506957c you'll have to enable Vertex Interpolation option
on every MeshSequenceCache modifier by hand.

Maniphest Tasks: T86654

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

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

M	source/blender/makesdna/DNA_modifier_defaults.h

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

diff --git a/source/blender/makesdna/DNA_modifier_defaults.h b/source/blender/makesdna/DNA_modifier_defaults.h
index 9335c360363..d8e48c51107 100644
--- a/source/blender/makesdna/DNA_modifier_defaults.h
+++ b/source/blender/makesdna/DNA_modifier_defaults.h
@@ -414,7 +414,8 @@
   { \
     .cache_file = NULL, \
     .object_path = "", \
-    .read_flag = MOD_MESHSEQ_READ_VERT | MOD_MESHSEQ_READ_POLY | MOD_MESHSEQ_READ_UV | MOD_MESHSEQ_READ_COLOR, \
+    .read_flag = MOD_MESHSEQ_READ_VERT | MOD_MESHSEQ_READ_POLY | MOD_MESHSEQ_READ_UV | \
+                 MOD_MESHSEQ_READ_COLOR | MOD_MESHSEQ_INTERPOLATE_VERTICES, \
     .velocity_scale = 1.0f, \
     .reader = NULL, \
     .reader_object_path = "", \



More information about the Bf-blender-cvs mailing list