 +
 +
 +static void calc_moebius_transform(Object *control, Object *target, float co[3]) {
-+	float mat[4][4];	
 +	float off[3];
 +	float radius;
 +	float leftQ[4]; 

 static void rna_def_modifier_dynamic_paint(BlenderRNA *brna)
 {
 	StructRNA *srna;
@@ -2315,6 +2335,8 @@
 	RNA_def_property_ui_text(prop, "Width", "Bevel value/amount");
 	RNA_def_property_update(prop, 0, "rna_Modifier_update");
 

+	float hRot[4][4];
+	float leftMat[4][4];
+	float rightMat[4][4];
+	float distsq;
+	float h[4];
+	radius = 1.0f;
+
+	sub_v3_v3v3(off,target->obmat[3],control->obmat[3]); //should be control.pos - target.pos
+
+	mat4_to_quat(leftQ,control->obmat);
+	mat4_to_quat(rightQ,control->obmat);
+	
