toggle cut through in the knife tool now refreshes (before you had to wave the mouse about to see the result).
also remove print from last commit.
This commit is contained in:
		@@ -59,7 +59,7 @@ void BKE_mball_properties_copy(struct Scene *scene, struct Object *active_object
 | 
			
		||||
int BKE_mball_minmax(struct MetaBall *mb, float min[3], float max[3]);
 | 
			
		||||
int BKE_mball_center_median(struct MetaBall *mb, float r_cent[3]);
 | 
			
		||||
int BKE_mball_center_bounds(struct MetaBall *mb, float r_cent[3]);
 | 
			
		||||
void BKE_mball_translate(struct MetaBall *mb, float offset[3]);
 | 
			
		||||
void BKE_mball_translate(struct MetaBall *mb, const float offset[3]);
 | 
			
		||||
 | 
			
		||||
struct MetaElem *BKE_mball_element_add(struct MetaBall *mb, const int type);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -2388,7 +2388,7 @@ int BKE_mball_center_bounds(MetaBall *mb, float r_cent[3])
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void BKE_mball_translate(MetaBall *mb, float offset[3])
 | 
			
		||||
void BKE_mball_translate(MetaBall *mb, const float offset[3])
 | 
			
		||||
{
 | 
			
		||||
	MetaElem *ml;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -3130,6 +3130,7 @@ static int knifetool_modal(bContext *C, wmOperator *op, wmEvent *event)
 | 
			
		||||
				break;
 | 
			
		||||
			case KNF_MODAL_CUT_THROUGH_TOGGLE:
 | 
			
		||||
				kcd->cut_through = !kcd->cut_through;
 | 
			
		||||
				knifetool_update_mval(kcd, event->mval);  /* refresh knife path */
 | 
			
		||||
				knife_update_header(C, kcd);
 | 
			
		||||
				break;
 | 
			
		||||
			case KNF_MODAL_NEW_CUT:
 | 
			
		||||
 
 | 
			
		||||
@@ -770,8 +770,6 @@ int PyC_FlagSet_ToBitfield(PyC_FlagSet *items, PyObject *value, int *r_value, co
 | 
			
		||||
	Py_ssize_t hash = 0;
 | 
			
		||||
	PyObject *key;
 | 
			
		||||
 | 
			
		||||
	PyC_ObSpit("", value);
 | 
			
		||||
 | 
			
		||||
	if (!PySet_Check(value)) {
 | 
			
		||||
		PyErr_Format(PyExc_TypeError,
 | 
			
		||||
		             "%.200s expected a set, not %.200s",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user