diff options
author | meta-androcto <meta.androcto1@gmail.com> | 2019-01-31 02:00:43 +0300 |
---|---|---|
committer | meta-androcto <meta.androcto1@gmail.com> | 2019-01-31 02:00:43 +0300 |
commit | 9b904ee25df87abf5e7292f8cc8eaae4a464db60 (patch) | |
tree | 8a69e4e75793d0dc746af1b48d74be314a968097 /space_view3d_3d_navigation.py | |
parent | 4e8ddec4e1be8e67da90fe244707fb2077837604 (diff) |
Update Modifier tools and 3d navigation T61000
Diffstat (limited to 'space_view3d_3d_navigation.py')
-rw-r--r-- | space_view3d_3d_navigation.py | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/space_view3d_3d_navigation.py b/space_view3d_3d_navigation.py index 5705db9d..b7129d80 100644 --- a/space_view3d_3d_navigation.py +++ b/space_view3d_3d_navigation.py @@ -25,8 +25,8 @@ bl_info = { "name": "3D Navigation", "author": "Demohero, uriel", - "version": (1, 2, 2), - "blender": (2, 77, 0), + "version": (1, 2, 3), + "blender": (2, 80, 0), "location": "View3D > Tool Shelf > Display Tab", "description": "Navigate the Camera & 3D View from the Toolshelf", "warning": "", @@ -161,7 +161,7 @@ class LeftViewpoint1(Operator): bl_description = "View from the Left" def execute(self, context): - bpy.ops.view3d.viewnumpad(type='LEFT') + bpy.ops.view3d.view_axis(type='LEFT') return {'FINISHED'} @@ -171,7 +171,7 @@ class RightViewpoint1(Operator): bl_description = "View from the Right" def execute(self, context): - bpy.ops.view3d.viewnumpad(type='RIGHT') + bpy.ops.view3d.view_axis(type='RIGHT') return {'FINISHED'} @@ -181,7 +181,7 @@ class FrontViewpoint1(Operator): bl_description = "View from the Front" def execute(self, context): - bpy.ops.view3d.viewnumpad(type='FRONT') + bpy.ops.view3d.view_axis(type='FRONT') return {'FINISHED'} @@ -191,7 +191,7 @@ class BackViewpoint1(Operator): bl_description = "View from the Back" def execute(self, context): - bpy.ops.view3d.viewnumpad(type='BACK') + bpy.ops.view3d.view_axis(type='BACK') return {'FINISHED'} @@ -201,7 +201,7 @@ class TopViewpoint1(Operator): bl_description = "View from the Top" def execute(self, context): - bpy.ops.view3d.viewnumpad(type='TOP') + bpy.ops.view3d.view_axis(type='TOP') return {'FINISHED'} @@ -211,7 +211,7 @@ class BottomViewpoint1(Operator): bl_description = "View from the Bottom" def execute(self, context): - bpy.ops.view3d.viewnumpad(type='BOTTOM') + bpy.ops.view3d.view_axis(type='BOTTOM') return {'FINISHED'} @@ -219,7 +219,7 @@ class BottomViewpoint1(Operator): class VIEW3D_PT_3dnavigationPanel(Panel): bl_category = "Display" bl_space_type = "VIEW_3D" - bl_region_type = "TOOLS" + bl_region_type = "UI" bl_label = "3D Nav" def draw(self, context): @@ -230,20 +230,20 @@ class VIEW3D_PT_3dnavigationPanel(Panel): col = layout.column(align=True) col.operator("view3d.localview", text="View Global / Local") col.operator("view3d.view_persportho", text="View Persp / Ortho") - col.operator("view3d.viewnumpad", text="View Camera", icon='CAMERA_DATA').type = 'CAMERA' + col.operator("view3d.view_camera", text="View Camera", icon='CAMERA_DATA') # group of 6 buttons col = layout.column(align=True) col.label(text="Align view from:", icon="VIEW3D") row = col.row() - row.operator("view3d.viewnumpad", text="Front").type = 'FRONT' - row.operator("view3d.viewnumpad", text="Back").type = 'BACK' + row.operator("view3d.view_axis", text="Front").type = 'FRONT' + row.operator("view3d.view_axis", text="Back").type = 'BACK' row = col.row() - row.operator("view3d.viewnumpad", text="Left").type = 'LEFT' - row.operator("view3d.viewnumpad", text="Right").type = 'RIGHT' + row.operator("view3d.view_axis", text="Left").type = 'LEFT' + row.operator("view3d.view_axis", text="Right").type = 'RIGHT' row = col.row() - row.operator("view3d.viewnumpad", text="Top").type = 'TOP' - row.operator("view3d.viewnumpad", text="Bottom").type = 'BOTTOM' + row.operator("view3d.view_axis", text="Top").type = 'TOP' + row.operator("view3d.view_axis", text="Bottom").type = 'BOTTOM' # group of 2 buttons col = layout.column(align=True) @@ -263,7 +263,7 @@ class VIEW3D_PT_pan_navigation1(Panel): bl_idname = "pan.navigation1" bl_label = "Pan Orbit Zoom Roll" bl_space_type = "VIEW_3D" - bl_region_type = "TOOLS" + bl_region_type = "UI" bl_category = "Display" bl_options = {'DEFAULT_CLOSED'} |