[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45939] trunk/blender/release/scripts/ startup/bl_ui/space_view3d.py: fix [#31083] "Hide Selected" through Menu Operation doesn't work well

Campbell Barton ideasman42 at gmail.com
Tue Apr 24 19:50:01 CEST 2012


Revision: 45939
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45939
Author:   campbellbarton
Date:     2012-04-24 17:50:01 +0000 (Tue, 24 Apr 2012)
Log Message:
-----------
fix [#31083] "Hide Selected" through Menu Operation doesn't work well

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/space_view3d.py

Modified: trunk/blender/release/scripts/startup/bl_ui/space_view3d.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_view3d.py	2012-04-24 17:20:51 UTC (rev 45938)
+++ trunk/blender/release/scripts/startup/bl_ui/space_view3d.py	2012-04-24 17:50:01 UTC (rev 45939)
@@ -131,7 +131,7 @@
         layout = self.layout
 
         layout.operator("%s.reveal" % self._operator_name, text="Show Hidden")
-        layout.operator("%s.hide" % self._operator_name, text="Hide Selected")
+        layout.operator("%s.hide" % self._operator_name, text="Hide Selected").unselected = False
         layout.operator("%s.hide" % self._operator_name, text="Hide Unselected").unselected = True
 
 
@@ -1602,7 +1602,7 @@
         layout.operator("mesh.subdivide", text="Subdivide Smooth").smoothness = 1.0
         layout.operator("mesh.merge", text="Merge...")
         layout.operator("mesh.remove_doubles")
-        layout.operator("mesh.hide", text="Hide")
+        layout.operator("mesh.hide", text="Hide").unselected = False
         layout.operator("mesh.reveal", text="Reveal")
         layout.operator("mesh.select_all", text="Select Inverse").action = 'INVERT'
         layout.operator("mesh.flip_normals")
@@ -2036,7 +2036,7 @@
         layout = self.layout
 
         layout.operator("mball.reveal_metaelems", text="Show Hidden")
-        layout.operator("mball.hide_metaelems", text="Hide Selected")
+        layout.operator("mball.hide_metaelems", text="Hide Selected").unselected = False
         layout.operator("mball.hide_metaelems", text="Hide Unselected").unselected = True
 
 




More information about the Bf-blender-cvs mailing list