hook menu was using last remembered use_bone setting

This commit is contained in:
Campbell Barton 2012-08-22 15:38:03 +00:00
parent 84e80b6904
commit 6143acf878

@ -1182,7 +1182,7 @@ class VIEW3D_MT_hook(Menu):
layout = self.layout
layout.operator_context = 'EXEC_AREA'
layout.operator("object.hook_add_newob")
layout.operator("object.hook_add_selob")
layout.operator("object.hook_add_selob").use_bone = False
layout.operator("object.hook_add_selob", text="Hook to Selected Object Bone").use_bone = True
if [mod.type == 'HOOK' for mod in context.active_object.modifiers]: