[Bf-blender-cvs] [42c0fdc] alembic_pointcache: Disabled UNDO for the export operator, it doesn't make sense anyway. Cache files are external outside the undo system and can not simply be restored.

Lukas Tönne noreply at git.blender.org
Thu Oct 16 16:53:08 CEST 2014


Commit: 42c0fdc276523a9d2312a746bf01126f8a509aa8
Author: Lukas Tönne
Date:   Mon Nov 25 15:44:20 2013 +0100
Branches: alembic_pointcache
https://developer.blender.org/rB42c0fdc276523a9d2312a746bf01126f8a509aa8

Disabled UNDO for the export operator, it doesn't make sense anyway.
Cache files are external outside the undo system and can not simply be
restored.

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

M	source/blender/editors/physics/physics_pointcache.c

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

diff --git a/source/blender/editors/physics/physics_pointcache.c b/source/blender/editors/physics/physics_pointcache.c
index e454973..0b0f938 100644
--- a/source/blender/editors/physics/physics_pointcache.c
+++ b/source/blender/editors/physics/physics_pointcache.c
@@ -527,5 +527,6 @@ void PTCACHE_OT_export(wmOperatorType *ot)
 	ot->poll = ptcache_poll;
 
 	/* flags */
-	ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
+	/* no undo for this operator, cannot restore old cache files anyway */
+	ot->flag = OPTYPE_REGISTER;
 }




More information about the Bf-blender-cvs mailing list