Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeta-androcto <meta.androcto1@gmail.com>2019-03-26 07:18:14 +0300
committermeta-androcto <meta.androcto1@gmail.com>2019-03-26 07:18:14 +0300
commit008ca6334c95ae45e267f6f18f96fe602893263e (patch)
tree89d31f6f8ba59ca27c391c500e4feaad269d01c8 /space_view3d_3d_navigation.py
parent31c05651d78d888fe60c07c6aa51161422f738fd (diff)
3d Navigation: update bl_info to Sidebar, fix panel reg, re-order panel bl_ elements
Diffstat (limited to 'space_view3d_3d_navigation.py')
-rw-r--r--space_view3d_3d_navigation.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/space_view3d_3d_navigation.py b/space_view3d_3d_navigation.py
index b7129d80..23e39cf2 100644
--- a/space_view3d_3d_navigation.py
+++ b/space_view3d_3d_navigation.py
@@ -25,9 +25,9 @@
bl_info = {
"name": "3D Navigation",
"author": "Demohero, uriel",
- "version": (1, 2, 3),
+ "version": (1, 2, 4),
"blender": (2, 80, 0),
- "location": "View3D > Tool Shelf > Display Tab",
+ "location": "View3D > Sidebar > Display Tab",
"description": "Navigate the Camera & 3D View from the Toolshelf",
"warning": "",
"wiki_url": "https://wiki.blender.org/index.php/Extensions:2.6/Py/"
@@ -217,10 +217,10 @@ class BottomViewpoint1(Operator):
# Panel class of this toolbar
class VIEW3D_PT_3dnavigationPanel(Panel):
- bl_category = "Display"
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_label = "3D Nav"
+ bl_category = "Display"
def draw(self, context):
layout = self.layout
@@ -259,11 +259,10 @@ class VIEW3D_PT_3dnavigationPanel(Panel):
col.operator("view3d.snap_cursor_to_selected", text="Cursor to Selected")
-class VIEW3D_PT_pan_navigation1(Panel):
- bl_idname = "pan.navigation1"
- bl_label = "Pan Orbit Zoom Roll"
+class VIEW3D_PT_3dnavigationPanel2(Panel):
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
+ bl_label = "Pan Orbit Zoom Roll"
bl_category = "Display"
bl_options = {'DEFAULT_CLOSED'}
@@ -314,7 +313,7 @@ class VIEW3D_PT_pan_navigation1(Panel):
# Define Panel classes for updating
panels = (
VIEW3D_PT_3dnavigationPanel,
- VIEW3D_PT_pan_navigation1,
+ VIEW3D_PT_3dnavigationPanel2,
)
@@ -357,7 +356,7 @@ class NavAddonPreferences(AddonPreferences):
classes = (
VIEW3D_PT_3dnavigationPanel,
- VIEW3D_PT_pan_navigation1,
+ VIEW3D_PT_3dnavigationPanel2,
OrbitUpView1,
OrbitLeftView1,
OrbitRightView1,