Start bringing back particle edit
Its kind of broken, but have to start somewhere
This commit is contained in:
parent
c98af0faaf
commit
7f38e59810
|
@ -315,7 +315,7 @@ PTCacheEdit *PE_get_current(Scene *scene, ViewLayer *view_layer, Object *ob)
|
|||
|
||||
PTCacheEdit *PE_create_current(const EvaluationContext *eval_ctx, Scene *scene, Object *ob)
|
||||
{
|
||||
return pe_get_current(eval_ctx, scene, NULL, ob, 1);
|
||||
return pe_get_current(eval_ctx, scene, eval_ctx->view_layer, ob, 1);
|
||||
}
|
||||
|
||||
void PE_current_changed(const EvaluationContext *eval_ctx, Scene *scene, Object *ob)
|
||||
|
@ -4791,9 +4791,6 @@ static int particle_edit_toggle_exec(bContext *C, wmOperator *op)
|
|||
const int mode_flag = OB_MODE_PARTICLE_EDIT;
|
||||
const bool is_mode_set = (eval_ctx.object_mode & mode_flag) != 0;
|
||||
|
||||
BKE_report(op->reports, RPT_INFO, "Particles are changing, editing is not possible");
|
||||
return OPERATOR_CANCELLED;
|
||||
|
||||
if (!is_mode_set) {
|
||||
if (!ED_object_mode_compat_set(C, workspace, mode_flag, op->reports)) {
|
||||
return OPERATOR_CANCELLED;
|
||||
|
|
Loading…
Reference in New Issue