Internal support for rotating duplis according to the ground slope normal.
[blender-addons-contrib.git] / space_view3d_add_surround_cameras.py
index 6a3c644d586d0186747d5d4f077677f8a09ad9fb..bf4ddd08e87d7c3872dc6b4eba74c674595e3171 100644 (file)
 # ##### END GPL LICENSE BLOCK #####
 
 bl_info = {
-    'name': "Surround Projection Tools",
-    'author': "Cole Ingraham",
-    'location': "View3D > Tool Shelf > Surround Projection panel",
-    'description': "Setup cameras and create rendering scenes for n-screen surround projection.",
-    'wiki_url': "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/3D_interaction/Surround_Projection_Tools",
-    'version': (0,1,2),
-    'blender': (2, 6, 0),
-    'category': '3D View'
-}
+    "name": "Surround Projection Tools",
+    "author": "Cole Ingraham",
+    "version": (0, 1, 2),
+    "blender": (2, 60, 0),
+    "location": "View3D > Tool Shelf > Surround Projection panel",
+    "description": "Setup cameras and create rendering scenes for n-screen surround projection.",
+    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/3D_interaction/Surround_Projection_Tools",
+    "tracker_url": "https://developer.blender.org/T29266",
+    "category": "3D View"}
+
 
 import bpy
 from bpy.props import IntProperty
@@ -58,7 +59,9 @@ class AddSurroundCamerasPanel(bpy.types.Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'TOOLS'
     bl_label = "Surround Projection"
+    bl_category = 'Addons'
     bl_options = {'DEFAULT_CLOSED'}
+
     def draw(self, context):
         layout = self.layout
         col = layout.column(align=True)
@@ -66,14 +69,14 @@ class AddSurroundCamerasPanel(bpy.types.Panel):
         row = col.row()
         row.prop(context.window_manager, "num_surround_screens")
         row = col.row()
-        
+
         if context.window_manager.previous_num_surround_screens is not -1:
              row.operator('objects.remove_surround_cameras', icon='X')
         else:
              row.operator('objects.add_surround_cameras', icon='CAMERA_DATA')
-        
+
         row = col.row()
-        
+
         if context.window_manager.surround_screens_init is True:
              row.operator('objects.remove_linked_scenes_for_surround_cameras', icon='X')
         else:
@@ -172,7 +175,7 @@ class AddSurroundScenesOperator(bpy.types.Operator):
             camera_object = bpy.data.objects["Camera" + str(i)]
             scene_new.camera = camera_object
             scene_new.background_set = scene_base
-            
+
             # not essential but nice to have the camera in the scene
             scene_new.objects.link(camera_object)