[Bf-blender-cvs] [2fed99ad9f1] blender2.8: Fix T51379: Entering particle edit crash (temporary)
Luca Rood
noreply at git.blender.org
Mon May 8 11:52:31 CEST 2017
Commit: 2fed99ad9f1a88c2e90491542c8961f42bce1adb
Author: Luca Rood
Date: Mon May 8 11:47:47 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB2fed99ad9f1a88c2e90491542c8961f42bce1adb
Fix T51379: Entering particle edit crash (temporary)
Disabled particle edit mode for now, as there's no point in fixing it
before refactor.
===================================================================
M source/blender/editors/physics/particle_edit.c
===================================================================
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index 5e00b76346e..4eb6345c7e6 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -4733,6 +4733,9 @@ static int particle_edit_toggle_exec(bContext *C, wmOperator *op)
const int mode_flag = OB_MODE_PARTICLE_EDIT;
const bool is_mode_set = (ob->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, ob, mode_flag, op->reports)) {
return OPERATOR_CANCELLED;
More information about the Bf-blender-cvs
mailing list