[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25303] trunk/blender: Various UV editor / notifier related fixes:

Matt Ebb matt at mke3.net
Fri Dec 11 02:12:22 CET 2009


Revision: 25303
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25303
Author:   broken
Date:     2009-12-11 02:12:22 +0100 (Fri, 11 Dec 2009)

Log Message:
-----------
Various UV editor / notifier related fixes:

[#20336] Missing notifier - properties view does not update on UV unwrap
[#20337] Shift select is not working in UV-editor island mode
[#20338] Update automatically menu item has strange icon behavior
[#20339] Select all will quit working in UV editor

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_image.py
    trunk/blender/source/blender/editors/space_buttons/space_buttons.c
    trunk/blender/source/blender/editors/uvedit/uvedit_ops.c
    trunk/blender/source/blender/makesrna/intern/rna_scene.c
    trunk/blender/source/blender/makesrna/intern/rna_space.c

Modified: trunk/blender/release/scripts/ui/space_image.py
===================================================================
--- trunk/blender/release/scripts/ui/space_image.py	2009-12-11 00:51:14 UTC (rev 25302)
+++ trunk/blender/release/scripts/ui/space_image.py	2009-12-11 01:12:22 UTC (rev 25303)
@@ -311,7 +311,7 @@
                 row.operator("image.play_composite", icon='PLAY')
 
         if show_uvedit or sima.image_painting:
-            layout.prop(sima, "update_automatically", text="")
+            layout.prop(sima, "update_automatically", text="", icon_only=True, icon='LOCKED')
 
 
 class IMAGE_PT_image_properties(bpy.types.Panel):

Modified: trunk/blender/source/blender/editors/space_buttons/space_buttons.c
===================================================================
--- trunk/blender/source/blender/editors/space_buttons/space_buttons.c	2009-12-11 00:51:14 UTC (rev 25302)
+++ trunk/blender/source/blender/editors/space_buttons/space_buttons.c	2009-12-11 01:12:22 UTC (rev 25303)
@@ -285,6 +285,7 @@
 		case NC_GEOM:
 			switch(wmn->data) {
 				case ND_SELECT:
+				case ND_DATA:
 					ED_area_tag_redraw(sa);
 					break;
 			}

Modified: trunk/blender/source/blender/editors/uvedit/uvedit_ops.c
===================================================================
--- trunk/blender/source/blender/editors/uvedit/uvedit_ops.c	2009-12-11 00:51:14 UTC (rev 25302)
+++ trunk/blender/source/blender/editors/uvedit/uvedit_ops.c	2009-12-11 01:12:22 UTC (rev 25303)
@@ -904,7 +904,7 @@
 		}
 	}
 
-	if(!extend || hit) {
+	if(!extend && hit) {
 		for(a=0, efa= em->faces.first; efa; efa= efa->next, a++) {
 			tf = CustomData_em_get(&em->fdata, efa->data, CD_MTFACE);
 			if(flag[a])

Modified: trunk/blender/source/blender/makesrna/intern/rna_scene.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_scene.c	2009-12-11 00:51:14 UTC (rev 25302)
+++ trunk/blender/source/blender/makesrna/intern/rna_scene.c	2009-12-11 01:12:22 UTC (rev 25303)
@@ -722,15 +722,18 @@
 	RNA_def_property_enum_sdna(prop, NULL, "uv_selectmode");
 	RNA_def_property_enum_items(prop, uv_select_mode_items);
 	RNA_def_property_ui_text(prop, "UV Selection Mode", "UV selection and display mode.");
+	RNA_def_property_update(prop, NC_SPACE|ND_SPACE_IMAGE, NULL);
 
 	prop= RNA_def_property(srna, "uv_sync_selection", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "uv_flag", UV_SYNC_SELECTION);
 	RNA_def_property_ui_text(prop, "UV Sync Selection", "Keep UV and edit mode mesh selection in sync.");
 	RNA_def_property_ui_icon(prop, ICON_EDIT, 0);
+	RNA_def_property_update(prop, NC_SPACE|ND_SPACE_IMAGE, NULL);
 
 	prop= RNA_def_property(srna, "uv_local_view", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "uv_flag", UV_SHOW_SAME_IMAGE);
 	RNA_def_property_ui_text(prop, "UV Local View", "Draw only faces with the currently displayed image assigned.");
+	RNA_def_property_update(prop, NC_SPACE|ND_SPACE_IMAGE, NULL);
 
 	/* Mesh */
 	prop= RNA_def_property(srna, "mesh_selection_mode", PROP_ENUM, PROP_NONE);

Modified: trunk/blender/source/blender/makesrna/intern/rna_space.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_space.c	2009-12-11 00:51:14 UTC (rev 25302)
+++ trunk/blender/source/blender/makesrna/intern/rna_space.c	2009-12-11 01:12:22 UTC (rev 25303)
@@ -1042,7 +1042,6 @@
 	/* update */
 	prop= RNA_def_property(srna, "update_automatically", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "lock", 0);
-	RNA_def_property_ui_icon(prop, ICON_UNLOCKED, 1);
 	RNA_def_property_ui_text(prop, "Update Automatically", "Update other affected window spaces automatically to reflect changes during interactive operations such as transform.");
 
 	/* state */





More information about the Bf-blender-cvs mailing list