Fix [#22165] "Camera:" field of the Properties>View panel (3D View) has no function...
authorMatt Ebb <matt@mke3.net>
Tue, 27 Apr 2010 06:47:12 +0000 (06:47 +0000)
committerMatt Ebb <matt@mke3.net>
Tue, 27 Apr 2010 06:47:12 +0000 (06:47 +0000)
Cleaned up UI, made it a bit clearer

release/scripts/ui/space_view3d.py

index f775340c12411b9dd769cfe616242570a46064fb..36ccd47332efe7a2a57e4061c81798f02f357d69 100644 (file)
@@ -1848,8 +1848,6 @@ class VIEW3D_PT_3dview_properties(bpy.types.Panel):
         scene = context.scene
 
         col = layout.column()
-        col.label(text="Camera:")
-        col.prop(view, "camera", text="")
         col.prop(view, "lens")
         col.label(text="Lock to Object:")
         col.prop(view, "lock_object", text="")
@@ -1861,6 +1859,11 @@ class VIEW3D_PT_3dview_properties(bpy.types.Panel):
         col.prop(view, "clip_start", text="Start")
         col.prop(view, "clip_end", text="End")
 
+        subcol = col.column()
+        subcol.enabled = not view.lock_camera_and_layers
+        subcol.label(text="Local Camera:")
+        subcol.prop(view, "camera", text="")
+
         layout.column().prop(view, "cursor_location")