forked from bartvdbraak/blender
Nodes:
* Added properties operator to the View menu. * Added Notifier for Node Select Operator, so the new "Active Node" Panel gets refreshed.
This commit is contained in:
parent
55a7e73b7d
commit
f76a6020c0
@ -72,6 +72,9 @@ class NODE_MT_view(bpy.types.Menu):
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
layout.itemO("node.properties", icon='ICON_MENU_PANEL')
|
||||
layout.itemS()
|
||||
|
||||
# layout.itemO("grease_pencil..")
|
||||
# layout.itemS()
|
||||
|
@ -140,6 +140,9 @@ static int node_select_exec(bContext *C, wmOperator *op)
|
||||
}
|
||||
|
||||
ED_region_tag_redraw(ar);
|
||||
|
||||
/* send notifiers */
|
||||
WM_event_add_notifier(C, NC_NODE|ND_NODE_SELECT, NULL);
|
||||
|
||||
/* allow tweak event to work too */
|
||||
return OPERATOR_FINISHED|OPERATOR_PASS_THROUGH;
|
||||
|
Loading…
Reference in New Issue
Block a user