fix for cm > pixel to avoid massive renders
authorBrendon Murphy <meta.androcto1@gmail.com>
Thu, 7 Jul 2011 12:11:10 +0000 (12:11 +0000)
committerBrendon Murphy <meta.androcto1@gmail.com>
Thu, 7 Jul 2011 12:11:10 +0000 (12:11 +0000)
thanks to zeffii

render_to_print.py

index 06a6e915741a4294800fc68d0907c7c90ba2a2d4..c418858b0e4b089eb5ddebdf0bb595ea04cebac0 100644 (file)
@@ -210,6 +210,11 @@ class RENDER_PT_Print(bpy.types.Panel):
         
         #  this if else deals with hiding UI elements when logic demands it.
         tipo,dim_w,dim_h = scn.MyPreset.split("_")
+
+        if tipo == "custom":
+            row.active=False
+            row.enabled=False
+
         if scn.MyFrom == "Cm--->Pixel":
             row5.active=False
             row5.enabled=False