Fix T47593: 'Move to layer' will be crash in blender 2.77rc1.
To be backported to 2.77.
This commit is contained in:
parent
5cec0e6faf
commit
3075328c56
Notes:
blender-bot
2023-02-14 08:10:09 +01:00
Referenced by issue #47593, 'Move to layer' will be crash in blender 2.77rc1
|
@ -1284,7 +1284,7 @@ void OBJECT_OT_paths_calculate(wmOperatorType *ot)
|
|||
static int object_update_paths_poll(bContext *C)
|
||||
{
|
||||
if (ED_operator_object_active_editable(C)) {
|
||||
Object *ob = CTX_data_active_object(C);
|
||||
Object *ob = ED_object_active_context(C);
|
||||
return (ob->avs.path_bakeflag & MOTIONPATH_BAKE_HAS_PATHS) != 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue