[Bf-blender-cvs] [db033d1] PSketch: PSculpt - Code Cleanup: Remove unneeded stuff

Joshua Leung noreply at git.blender.org
Sun Jan 31 14:29:06 CET 2016


Commit: db033d1097e3ddf75392a789b5f69c010162babd
Author: Joshua Leung
Date:   Fri Jan 15 13:02:25 2016 +1300
Branches: PSketch
https://developer.blender.org/rBdb033d1097e3ddf75392a789b5f69c010162babd

PSculpt - Code Cleanup: Remove unneeded stuff

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

M	source/blender/editors/armature/pose_sculpt.c
M	source/blender/makesrna/intern/rna_sculpt_paint.c

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

diff --git a/source/blender/editors/armature/pose_sculpt.c b/source/blender/editors/armature/pose_sculpt.c
index 5ef4d23..b02c8f6 100644
--- a/source/blender/editors/armature/pose_sculpt.c
+++ b/source/blender/editors/armature/pose_sculpt.c
@@ -556,6 +556,8 @@ static void pchan_do_trackball_rotate(Object *ob, bPoseChannel *pchan, float mat
 
 /* ........................................................ */
 
+#if 0  // XXX: Old, slightly buggy code
+
 /* convert pose-space joints of PoseChannel to loc/rot/scale components 
  * <> pchan: (bPoseChannel) pose channel that we're working on
  * < dvec: (vector) vector indicating direction of bone desired
@@ -665,6 +667,8 @@ static void apply_pchan_joints(bPoseChannel *pchan, float dvec[3])
 	}
 }
 
+#endif // XXX: end of old, buggy and unused code
+
 /* ........................................................ */
 
 /* check if a bone has already been affected by the brush, and add an entry if not */
diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c b/source/blender/makesrna/intern/rna_sculpt_paint.c
index 25960a3..dde0c4f 100644
--- a/source/blender/makesrna/intern/rna_sculpt_paint.c
+++ b/source/blender/makesrna/intern/rna_sculpt_paint.c
@@ -1176,12 +1176,6 @@ static void rna_def_pose_sculpt(BlenderRNA *brna)
 	RNA_def_property_boolean_sdna(prop, NULL, "flag", PSCULPT_BRUSH_FLAG_GRAB_INITIAL);
 	RNA_def_property_ui_text(prop, "Initial Bones Only", "Only affect the bones within the brush when the stroke was initiated");
 	RNA_def_property_update(prop, 0, "rna_PSculptBrush_update");
-	
-	/* dummy */
-	prop = RNA_def_property(srna, "curve", PROP_POINTER, PROP_NONE);
-	RNA_def_property_struct_type(prop, "CurveMapping");
-	RNA_def_property_pointer_funcs(prop, "rna_PSculptBrush_curve_get", NULL, NULL, NULL);
-	RNA_def_property_ui_text(prop, "Curve", "");
 }
 
 void RNA_def_sculpt_paint(BlenderRNA *brna)




More information about the Bf-blender-cvs mailing list