[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52451] trunk/blender/release/scripts/ startup/bl_ui/properties_data_camera.py: camera sensor ui fix: grey out values when not affecting camera
Dalai Felinto
dfelinto at gmail.com
Wed Nov 21 20:08:28 CET 2012
Revision: 52451
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52451
Author: dfelinto
Date: 2012-11-21 19:08:27 +0000 (Wed, 21 Nov 2012)
Log Message:
-----------
camera sensor ui fix: grey out values when not affecting camera
reviewed by Thomas Dinges (DingTo)
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/properties_data_camera.py
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_camera.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_camera.py 2012-11-21 15:42:12 UTC (rev 52450)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_camera.py 2012-11-21 19:08:27 UTC (rev 52451)
@@ -142,8 +142,12 @@
if cam.sensor_fit == 'AUTO':
col.prop(cam, "sensor_width", text="Size")
else:
- col.prop(cam, "sensor_width", text="Width")
- col.prop(cam, "sensor_height", text="Height")
+ sub = col.column()
+ sub.active = cam.sensor_fit == 'HORIZONTAL'
+ sub.prop(cam, "sensor_width", text="Width")
+ sub = col.column()
+ sub.active = cam.sensor_fit == 'VERTICAL'
+ sub.prop(cam, "sensor_height", text="Height")
col = split.column(align=True)
col.prop(cam, "sensor_fit", text="")
More information about the Bf-blender-cvs
mailing list