|
|
@ -36,7 +36,10 @@ def ensure_object_can_bake(bo, toggle): |
|
|
|
"""Ensures that we can use Blender's baking operators on this object. Side effect: also ensures |
|
|
|
"""Ensures that we can use Blender's baking operators on this object. Side effect: also ensures |
|
|
|
that the object will enter edit mode when requested.""" |
|
|
|
that the object will enter edit mode when requested.""" |
|
|
|
scene = bpy.context.scene |
|
|
|
scene = bpy.context.scene |
|
|
|
toggle.track(scene, "layers", bo.layers) |
|
|
|
# we don't toggle.track this because it actually updates some kind of Blender internals... |
|
|
|
|
|
|
|
# therefore the old and new value are equal. the export operator will take care of this for us |
|
|
|
|
|
|
|
scene.layers = (True,) * len(scene.layers) |
|
|
|
|
|
|
|
|
|
|
|
toggle.track(bo, "hide", False) |
|
|
|
toggle.track(bo, "hide", False) |
|
|
|
toggle.track(bo, "hide_render", False) |
|
|
|
toggle.track(bo, "hide_render", False) |
|
|
|
toggle.track(bo, "hide_select", False) |
|
|
|
toggle.track(bo, "hide_select", False) |
|
|
|