Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/physics/particle_edit_undo.c')
-rw-r--r--source/blender/editors/physics/particle_edit_undo.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/physics/particle_edit_undo.c b/source/blender/editors/physics/particle_edit_undo.c
index 329658a56e1..6e212174f39 100644
--- a/source/blender/editors/physics/particle_edit_undo.c
+++ b/source/blender/editors/physics/particle_edit_undo.c
@@ -45,16 +45,15 @@
#include "BLI_utildefines.h"
#include "BKE_depsgraph.h"
-#include "BKE_global.h"
#include "BKE_particle.h"
#include "BKE_pointcache.h"
#include "BKE_context.h"
-#include "BKE_main.h"
#include "BKE_undo_system.h"
#include "ED_object.h"
#include "ED_particle.h"
#include "ED_physics.h"
+#include "ED_undo.h"
#include "particle_edit_utildefines.h"
@@ -304,10 +303,10 @@ void ED_particle_undosys_type(UndoType *ut)
void PE_undo_push(struct Scene *scene, const char *str)
{
- wmWindowManager *wm = G.main->wm.first;
+ UndoStack *ustack = ED_undo_stack_get();
bContext *C_temp = CTX_create();
CTX_data_scene_set(C_temp, scene);
- BKE_undosys_step_push_with_type(wm->undo_stack, C_temp, str, BKE_UNDOSYS_TYPE_PARTICLE);
+ BKE_undosys_step_push_with_type(ustack, C_temp, str, BKE_UNDOSYS_TYPE_PARTICLE);
CTX_free(C_temp);
}