[Bf-blender-cvs] [5cceaef] wiggly-widgets: Cleanup: Remove unused Face Map property assignments

Julian Eisel noreply at git.blender.org
Sun Nov 15 17:54:17 CET 2015


Commit: 5cceaefcc9d68ae171efbbfb6cd40fc7c9ad4ef5
Author: Julian Eisel
Date:   Sun Nov 15 17:39:24 2015 +0100
Branches: wiggly-widgets
https://developer.blender.org/rB5cceaefcc9d68ae171efbbfb6cd40fc7c9ad4ef5

Cleanup: Remove unused Face Map property assignments

At the moment, I don't see why Face Maps would need to tweak a property (even not for manipulating shape keys)

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

M	source/blender/editors/space_view3d/space_view3d.c
M	source/blender/windowmanager/WM_api.h

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

diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c
index 116bd94..c44515a 100644
--- a/source/blender/editors/space_view3d/space_view3d.c
+++ b/source/blender/editors/space_view3d/space_view3d.c
@@ -982,7 +982,6 @@ static void WIDGETGROUP_armature_facemap_create(const struct bContext *C, struct
 			widget = WIDGET_facemap_new(wgroup, fmap->name, 0, fmap_ob, BLI_findindex(&fmap_ob->fmaps, fmap));
 
 			RNA_pointer_create(&fmap_ob->id, &RNA_FaceMap, fmap, &famapptr);
-			WM_widget_set_property(widget, FACEMAP_SLOT_FACEMAP, &famapptr, "name");
 			WM_widget_set_operator(widget, "TRANSFORM_OT_translate");
 			WM_widget_set_colors(widget, color_shape, color_shape);
 			WM_widget_set_flag(widget, WM_WIDGET_DRAW_HOVER, true);
@@ -1022,7 +1021,6 @@ static void WIDGETGROUP_armature_facemap_create(const struct bContext *C, struct
 			widget = WIDGET_facemap_new(wgroup, fmap->name, 0, ob, index);
 
 			RNA_pointer_create(&ob->id, &RNA_FaceMap, fmap, &famapptr);
-			WM_widget_set_property(widget, FACEMAP_SLOT_FACEMAP, &famapptr, "name");
 			WM_widget_set_colors(widget, color_shape, color_shape);
 			WM_widget_set_flag(widget, WM_WIDGET_DRAW_HOVER, true);
 			opptr = WM_widget_set_operator(widget, "TRANSFORM_OT_translate");
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h
index ab6f0be..969bd6d 100644
--- a/source/blender/windowmanager/WM_api.h
+++ b/source/blender/windowmanager/WM_api.h
@@ -600,10 +600,6 @@ enum {
 	RECT_TRANSFORM_SLOT_SCALE = 1
 };
 
-enum {
-	FACEMAP_SLOT_FACEMAP = 0,
-};
-
 struct wmWidget *WIDGET_arrow_new(struct wmWidgetGroup *wgroup, const char *name, const int style);
 void WIDGET_arrow_set_direction(struct wmWidget *widget, const float direction[3]);
 void WIDGET_arrow_set_up_vector(struct wmWidget *widget, const float direction[3]);




More information about the Bf-blender-cvs mailing list