[Bf-blender-cvs] [186ff81e8f3] temp-alembic-exporter-T73363-ms2: Alembic: fixed subsurf modifiers not being re-enabled after export

Sybren A. Stüvel noreply at git.blender.org
Fri Apr 24 11:23:14 CEST 2020


Commit: 186ff81e8f39bc8afa6ddcb7ba03e65771b3604a
Author: Sybren A. Stüvel
Date:   Fri Apr 24 11:23:06 2020 +0200
Branches: temp-alembic-exporter-T73363-ms2
https://developer.blender.org/rB186ff81e8f39bc8afa6ddcb7ba03e65771b3604a

Alembic: fixed subsurf modifiers not being re-enabled after export

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

M	source/blender/io/alembic/intern/export/abc_subdiv_disabler.cc

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

diff --git a/source/blender/io/alembic/intern/export/abc_subdiv_disabler.cc b/source/blender/io/alembic/intern/export/abc_subdiv_disabler.cc
index c0d8c69dc41..5bd5040ac91 100644
--- a/source/blender/io/alembic/intern/export/abc_subdiv_disabler.cc
+++ b/source/blender/io/alembic/intern/export/abc_subdiv_disabler.cc
@@ -47,10 +47,11 @@ void SubdivModifierDisabler::disable_modifiers()
     }
 
     /* This disables more modifiers than necessary, as it doesn't take restrictions like
-     * "export selected objects only" into account. However, with the disabled subsurfs
+     * "export selected objects only" into account. However, with the subsurfs disabled,
      * moving to a different frame is also going to be faster, so in the end this is probably
      * a good thing to do. */
     subdiv->mode |= eModifierMode_DisableTemporary;
+    disabled_modifiers_.insert(subdiv);
     DEG_id_tag_update(&object->id, ID_RECALC_GEOMETRY);
   }
 }



More information about the Bf-blender-cvs mailing list