2.5: Fix for windows editmode tab crashes. This was due to
use of function pointers in the context callbacks. Apparently MSVC decides that some of these functions are the same and makes them into a single function with the same address. I couldn't figure out if this was a compiler bug or according to the C spec. Regardless, that means this method can't be used, so now it uses separate CTX_DATA_DEFINES.
This commit is contained in:
@@ -273,11 +273,11 @@ static void node_region_listener(ARegion *ar, wmNotifier *wmn)
|
||||
}
|
||||
}
|
||||
|
||||
static int node_context(const bContext *C, const bContextDataMember *member, bContextDataResult *result)
|
||||
static int node_context(const bContext *C, bContextDataMember member, bContextDataResult *result)
|
||||
{
|
||||
SpaceNode *snode= (SpaceNode*)CTX_wm_space_data(C);
|
||||
|
||||
if(member == CTX_data_selected_nodes) {
|
||||
if(member == CTX_DATA_SELECTED_NODES) {
|
||||
bNode *node;
|
||||
|
||||
for(next_node(snode->edittree); (node=next_node(NULL));) {
|
||||
|
||||
Reference in New Issue
Block a user