Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(118)

Issue 5975065: Popup menu layout inherits context store from button (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by lukas.toenne
Modified:
12 years, 1 month ago
Reviewers:
brechtvl, bf-codereview
Base URL:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Visibility:
Public.

Description

This 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -2 lines) Patch
source/blender/blenkernel/BKE_context.h View 1 chunk +1 line, -0 lines 0 comments Download
source/blender/blenkernel/intern/context.c View 1 chunk +29 lines, -0 lines 0 comments Download
source/blender/editors/include/UI_interface.h View 2 chunks +2 lines, -0 lines 0 comments Download
source/blender/editors/interface/interface_layout.c View 1 chunk +6 lines, -0 lines 0 comments Download
source/blender/editors/interface/interface_regions.c View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 2
lukas.toenne
12 years, 1 month ago (2012-04-03 07:05:12 UTC) #1
brechtvl
12 years, 1 month ago (2012-04-03 14:52:28 UTC) #2
LGTM.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b