Skip to content
Snippets Groups Projects
Commit 008ca633 authored by meta-androcto's avatar meta-androcto
Browse files

3d Navigation: update bl_info to Sidebar, fix panel reg, re-order panel bl_ elements

parent 31c05651
No related branches found
No related tags found
No related merge requests found
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
bl_info = { bl_info = {
"name": "3D Navigation", "name": "3D Navigation",
"author": "Demohero, uriel", "author": "Demohero, uriel",
"version": (1, 2, 3), "version": (1, 2, 4),
"blender": (2, 80, 0), "blender": (2, 80, 0),
"location": "View3D > Tool Shelf > Display Tab", "location": "View3D > Sidebar > Display Tab",
"description": "Navigate the Camera & 3D View from the Toolshelf", "description": "Navigate the Camera & 3D View from the Toolshelf",
"warning": "", "warning": "",
"wiki_url": "https://wiki.blender.org/index.php/Extensions:2.6/Py/" "wiki_url": "https://wiki.blender.org/index.php/Extensions:2.6/Py/"
...@@ -217,10 +217,10 @@ class BottomViewpoint1(Operator): ...@@ -217,10 +217,10 @@ class BottomViewpoint1(Operator):
# Panel class of this toolbar # Panel class of this toolbar
class VIEW3D_PT_3dnavigationPanel(Panel): class VIEW3D_PT_3dnavigationPanel(Panel):
bl_category = "Display"
bl_space_type = "VIEW_3D" bl_space_type = "VIEW_3D"
bl_region_type = "UI" bl_region_type = "UI"
bl_label = "3D Nav" bl_label = "3D Nav"
bl_category = "Display"
def draw(self, context): def draw(self, context):
layout = self.layout layout = self.layout
...@@ -259,11 +259,10 @@ class VIEW3D_PT_3dnavigationPanel(Panel): ...@@ -259,11 +259,10 @@ class VIEW3D_PT_3dnavigationPanel(Panel):
col.operator("view3d.snap_cursor_to_selected", text="Cursor to Selected") col.operator("view3d.snap_cursor_to_selected", text="Cursor to Selected")
class VIEW3D_PT_pan_navigation1(Panel): class VIEW3D_PT_3dnavigationPanel2(Panel):
bl_idname = "pan.navigation1"
bl_label = "Pan Orbit Zoom Roll"
bl_space_type = "VIEW_3D" bl_space_type = "VIEW_3D"
bl_region_type = "UI" bl_region_type = "UI"
bl_label = "Pan Orbit Zoom Roll"
bl_category = "Display" bl_category = "Display"
bl_options = {'DEFAULT_CLOSED'} bl_options = {'DEFAULT_CLOSED'}
...@@ -314,7 +313,7 @@ class VIEW3D_PT_pan_navigation1(Panel): ...@@ -314,7 +313,7 @@ class VIEW3D_PT_pan_navigation1(Panel):
# Define Panel classes for updating # Define Panel classes for updating
panels = ( panels = (
VIEW3D_PT_3dnavigationPanel, VIEW3D_PT_3dnavigationPanel,
VIEW3D_PT_pan_navigation1, VIEW3D_PT_3dnavigationPanel2,
) )
...@@ -357,7 +356,7 @@ class NavAddonPreferences(AddonPreferences): ...@@ -357,7 +356,7 @@ class NavAddonPreferences(AddonPreferences):
classes = ( classes = (
VIEW3D_PT_3dnavigationPanel, VIEW3D_PT_3dnavigationPanel,
VIEW3D_PT_pan_navigation1, VIEW3D_PT_3dnavigationPanel2,
OrbitUpView1, OrbitUpView1,
OrbitLeftView1, OrbitLeftView1,
OrbitRightView1, OrbitRightView1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment