Fix crash when starting baking fluid when baking thread is already started.
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 28 Sep 2011 08:31:02 +0000 (08:31 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 28 Sep 2011 08:31:02 +0000 (08:31 +0000)
source/blender/editors/physics/physics_fluid.c

index 2f62e55bcd8480fc4eb7726bec2a360d91fcf035..918adcac1386fba553f783edf61d3213da05c179 100644 (file)
@@ -1145,7 +1145,7 @@ static int fluid_bake_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event)
 {
        /* only one bake job at a time */
        if(WM_jobs_test(CTX_wm_manager(C), CTX_data_scene(C)))
-               return 0;
+               return OPERATOR_CANCELLED;
 
        if(!fluidsimBake(C, op->reports, CTX_data_active_object(C), TRUE))
                return OPERATOR_CANCELLED;