Commit: 3d8cbb534f8277840b51f0ec7003f77ee2391f16
Author: Campbell Barton
Date: Fri Jan 25 11:37:37 2019 +1100
Branches: master
https://developer.blender.org/rB3d8cbb534f8277840b51f0ec7003f77ee2391f16
Fix T60777: Grid fill fails when run via Repeat Last
===================================================================
M source/blender/editors/mesh/editmesh_tools.c
===================================================================
diff --git a/source/blender/editors/mesh/editmesh_tools.c
b/source/blender/editors/mesh/editmesh_tools.c
index 603683a931c..f7056760d60 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -4392,7 +4392,11 @@ static int edbm_fill_grid_exec(bContext *C, wmOperator
*op)
int span;
int offset;
- if (RNA_property_is_set(op->ptr, prop_span)) {
+ /* Only reuse on redo because these settings need to
match the current selection.
+ * We never want to use them on other geometry, repeat
last for eg, see: T60777. */
+ if ((op->flag & OP_IS_REPEAT) &&
+ RNA_property_is_set(op->ptr, prop_span))
+ {
span = RNA_property_int_get(op->ptr, prop_span);
span = min_ii(span, (clamp / 2) - 1);
calc_span = false;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs