[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60679] trunk/blender: Fix #37036, pack and refresh button not aligned anymore.

Antony Riakiotakis kalast at gmail.com
Fri Oct 11 01:33:59 CEST 2013


Revision: 60679
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60679
Author:   psy-fi
Date:     2013-10-10 23:33:59 +0000 (Thu, 10 Oct 2013)
Log Message:
-----------
Fix #37036, pack and refresh button not aligned anymore. Also add
operator for opening images in the image editor header, it's easily one
of the most common operations, don't see why it has to be only accessed
from menu.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/space_image.py
    trunk/blender/source/blender/editors/space_image/image_buttons.c

Modified: trunk/blender/release/scripts/startup/bl_ui/space_image.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_image.py	2013-10-10 23:18:37 UTC (rev 60678)
+++ trunk/blender/release/scripts/startup/bl_ui/space_image.py	2013-10-10 23:33:59 UTC (rev 60679)
@@ -390,7 +390,7 @@
             if show_maskedit:
                 sub.menu("MASK_MT_mask")
 
-        layout.template_ID(sima, "image", new="image.new")
+        layout.template_ID(sima, "image", new="image.new", open="image.open")
         if not show_render:
             layout.prop(sima, "use_image_pin", text="")
 

Modified: trunk/blender/source/blender/editors/space_image/image_buttons.c
===================================================================
--- trunk/blender/source/blender/editors/space_image/image_buttons.c	2013-10-10 23:18:37 UTC (rev 60678)
+++ trunk/blender/source/blender/editors/space_image/image_buttons.c	2013-10-10 23:33:59 UTC (rev 60679)
@@ -640,7 +640,7 @@
 				else
 					uiItemO(row, "", ICON_UGLYPACKAGE, "image.pack");
 				
-				row = uiLayoutRow(row, FALSE);
+				row = uiLayoutRow(row, TRUE);
 				uiLayoutSetEnabled(row, ima->packedfile == NULL);
 				uiItemR(row, &imaptr, "filepath", 0, "", ICON_NONE);
 				uiItemO(row, "", ICON_FILE_REFRESH, "image.reload");




More information about the Bf-blender-cvs mailing list