[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2122] trunk/py/scripts/addons/ object_animrenderbake.py: Fixed the Animated Render Baker ui conflict with the updated render baking ui .
Janne Karhu
jhkarh at gmail.com
Fri Jul 15 16:20:08 CEST 2011
Revision: 2122
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2122
Author: jhk
Date: 2011-07-15 14:20:07 +0000 (Fri, 15 Jul 2011)
Log Message:
-----------
Fixed the Animated Render Baker ui conflict with the updated render baking ui.
Modified Paths:
--------------
trunk/py/scripts/addons/object_animrenderbake.py
Modified: trunk/py/scripts/addons/object_animrenderbake.py
===================================================================
--- trunk/py/scripts/addons/object_animrenderbake.py 2011-07-12 00:33:00 UTC (rev 2121)
+++ trunk/py/scripts/addons/object_animrenderbake.py 2011-07-15 14:20:07 UTC (rev 2122)
@@ -20,7 +20,7 @@
"name": "Animated Render Baker",
"author": "Janne Karhu (jahka)",
"version": (1, 0),
- "blender": (2, 5, 7),
+ "blender": (2, 5, 8),
"api": 35622,
"location": "Properties > Render > Bake Panel",
"description": "Renderbakes a series of frames",
@@ -116,7 +116,7 @@
return{'FINISHED'}
-# modifier copy of original bake panel draw function
+# modified copy of original bake panel draw function
def draw_animrenderbake(self, context):
layout = self.layout
@@ -134,30 +134,42 @@
layout.prop(rd, "bake_type")
- if rd.bake_type == 'NORMALS':
- layout.prop(rd, "bake_normal_space")
- elif rd.bake_type in ('DISPLACEMENT', 'AO'):
- layout.prop(rd, "use_bake_normalize")
+ multires_bake = False
+ if rd.bake_type in ['NORMALS', 'DISPLACEMENT']:
+ layout.prop(rd, 'use_bake_multires')
+ multires_bake = rd.use_bake_multires
- # col.prop(rd, "bake_aa_mode")
- # col.prop(rd, "use_bake_antialiasing")
+ if not multires_bake:
+ if rd.bake_type == 'NORMALS':
+ layout.prop(rd, "bake_normal_space")
+ elif rd.bake_type in {'DISPLACEMENT', 'AO'}:
+ layout.prop(rd, "use_bake_normalize")
- layout.separator()
+ # col.prop(rd, "bake_aa_mode")
+ # col.prop(rd, "use_bake_antialiasing")
- split = layout.split()
+ layout.separator()
- col = split.column()
- col.prop(rd, "use_bake_clear")
- col.prop(rd, "bake_margin")
- col.prop(rd, "bake_quad_split", text="Split")
+ split = layout.split()
- col = split.column()
- col.prop(rd, "use_bake_selected_to_active")
- sub = col.column()
- sub.active = rd.use_bake_selected_to_active
- sub.prop(rd, "bake_distance")
- sub.prop(rd, "bake_bias")
+ col = split.column()
+ col.prop(rd, "use_bake_clear")
+ col.prop(rd, "bake_margin")
+ col.prop(rd, "bake_quad_split", text="Split")
+ col = split.column()
+ col.prop(rd, "use_bake_selected_to_active")
+ sub = col.column()
+ sub.active = rd.use_bake_selected_to_active
+ sub.prop(rd, "bake_distance")
+ sub.prop(rd, "bake_bias")
+ else:
+ if rd.bake_type == 'DISPLACEMENT':
+ layout.prop(rd, "use_bake_lores_mesh")
+
+ layout.prop(rd, "use_bake_clear")
+ layout.prop(rd, "bake_margin")
+
def register():
bpy.utils.register_module(__name__)
More information about the Bf-extensions-cvs
mailing list