Fix T66277: Pinning Fluid Domain properties causes bake error
Reviewers: brecht Maniphest Tasks: T66277 Differential Revision: https://developer.blender.org/D5161
This commit is contained in:
parent
28fee762ae
commit
bbbb5cad31
Notes:
blender-bot
2023-02-14 04:40:22 +01:00
Referenced by issue #66277, Pinning Fluid Domain properties causes bake error
|
@ -46,6 +46,7 @@
|
|||
#include "DEG_depsgraph.h"
|
||||
|
||||
#include "ED_screen.h"
|
||||
#include "ED_object.h"
|
||||
|
||||
#include "WM_types.h"
|
||||
#include "WM_api.h"
|
||||
|
@ -1216,7 +1217,7 @@ static int fluid_bake_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(
|
|||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
|
||||
if (!fluidsimBake(C, op->reports, CTX_data_active_object(C), true)) {
|
||||
if (!fluidsimBake(C, op->reports, ED_object_context(C), true)) {
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue