[Bf-blender-cvs] [ea4be4d1b1b] fracture_modifier: execute operator warns now if current frame is not on cache startframe

Martin Felke noreply at git.blender.org
Sat Jul 28 23:45:43 CEST 2018


Commit: ea4be4d1b1bddd3553e162411f6bb6cadb947057
Author: Martin Felke
Date:   Sat Jul 28 23:45:07 2018 +0200
Branches: fracture_modifier
https://developer.blender.org/rBea4be4d1b1bddd3553e162411f6bb6cadb947057

execute operator warns now if current frame is not on cache startframe

===================================================================

M	source/blender/editors/object/object_modifier.c

===================================================================

diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c
index 0e3030198e0..f7d28ffddce 100644
--- a/source/blender/editors/object/object_modifier.c
+++ b/source/blender/editors/object/object_modifier.c
@@ -2419,6 +2419,7 @@ static int fracture_refresh_exec(bContext *C, wmOperator *op)
 		if (BKE_rigidbody_check_sim_running(rbw, cfra) &&
 		   (rbw->ltime > rbw->pointcache->startframe || rbw->ltime == rbw->pointcache->endframe))
 		{
+			BKE_report(op->reports, RPT_WARNING, "Please jump back to cache start frame in order to refracture");
 			return OPERATOR_CANCELLED;
 		}
 	}



More information about the Bf-blender-cvs mailing list