diff options
-rw-r--r-- | source/blender/blenlib/intern/threads.c | 1 | ||||
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/threads.c b/source/blender/blenlib/intern/threads.c index e5d0385b6e3..9df746276bd 100644 --- a/source/blender/blenlib/intern/threads.c +++ b/source/blender/blenlib/intern/threads.c @@ -52,6 +52,7 @@ #include <sys/sysctl.h> #else #include <unistd.h> +#include <sys/time.h> #endif /* ********** basic thread control API ************ diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index eb03d3954d2..44e4f938e61 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -4065,7 +4065,7 @@ static int particle_edit_toggle_exec(bContext *C, wmOperator *op) /* mesh may have changed since last entering editmode. * note, this may have run before if the edit data was just created, so could avoid this and speed up a little */ - if(edit) + if(edit && edit->psys) recalc_emitter_field(ob, edit->psys); toggle_particle_cursor(C, 1); |