DescriptionThis is my attempt to solve a problem i had with operator menus. I am using uiLayoutSetContextPointer to add the bNode pointer to the draw context in nodes, so operator buttons can work on a specific node (similarly used in modifiers and logic bricks).
Problem is that, while it works nicely for standard buttons, it fails to pass the context pointer to popup menu layouts. This patch copies the bContextStore from the original uiBut to the new popup layout.
@Brecht: Campbell told me you implemented this feature in the first place, so would be nice if you could review.
Patch Set 1 #
MessagesTotal messages: 2
|