[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24861] trunk/blender/release/scripts/ui/ space_view3d.py: Fix wrong names in 3D view View menu

Campbell Barton ideasman42 at gmail.com
Tue Nov 24 14:25:51 CET 2009


Hey William, Id prefer to try get the enum names back in the menu
rather then adding the text in manually,
I'll need to investigate how to get the UI to detect this automatically.

On Tue, Nov 24, 2009 at 1:15 PM, William Reynish <william at reynish.com> wrote:
> Revision: 24861
>          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24861
> Author:   billrey
> Date:     2009-11-24 13:15:17 +0100 (Tue, 24 Nov 2009)
>
> Log Message:
> -----------
> Fix wrong names in 3D view View menu
>
> Modified Paths:
> --------------
>    trunk/blender/release/scripts/ui/space_view3d.py
>
> Modified: trunk/blender/release/scripts/ui/space_view3d.py
> ===================================================================
> --- trunk/blender/release/scripts/ui/space_view3d.py    2009-11-24 11:58:49 UTC (rev 24860)
> +++ trunk/blender/release/scripts/ui/space_view3d.py    2009-11-24 12:15:17 UTC (rev 24861)
> @@ -188,10 +188,10 @@
>
>         layout.separator()
>
> -        layout.operator("view3d.viewnumpad").type = 'CAMERA'
> -        layout.operator("view3d.viewnumpad").type = 'TOP'
> -        layout.operator("view3d.viewnumpad").type = 'FRONT'
> -        layout.operator("view3d.viewnumpad").type = 'RIGHT'
> +        layout.operator("view3d.viewnumpad", text="Camera").type = 'CAMERA'
> +        layout.operator("view3d.viewnumpad", text="Top").type = 'TOP'
> +        layout.operator("view3d.viewnumpad", text="Front").type = 'FRONT'
> +        layout.operator("view3d.viewnumpad", text="Right").type = 'RIGHT'
>
>         layout.menu("VIEW3D_MT_view_cameras", text="Cameras")
>
>
>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>



-- 
- Campbell


More information about the Bf-committers mailing list