Merge branch 'blender-v4.4-release'
This commit is contained in:
@@ -3318,7 +3318,7 @@ static void GREASE_PENCIL_OT_reproject(wmOperatorType *ot)
|
||||
/* callbacks */
|
||||
ot->invoke = WM_menu_invoke;
|
||||
ot->exec = grease_pencil_reproject_exec;
|
||||
ot->poll = editable_grease_pencil_poll;
|
||||
ot->poll = editable_grease_pencil_with_region_view3d_poll;
|
||||
ot->ui = grease_pencil_reproject_ui;
|
||||
|
||||
/* flags */
|
||||
@@ -3782,7 +3782,7 @@ static void GREASE_PENCIL_OT_texture_gradient(wmOperatorType *ot)
|
||||
ot->invoke = grease_pencil_texture_gradient_invoke;
|
||||
ot->modal = grease_pencil_texture_gradient_modal;
|
||||
ot->exec = grease_pencil_texture_gradient_exec;
|
||||
ot->poll = editable_grease_pencil_poll;
|
||||
ot->poll = editable_grease_pencil_with_region_view3d_poll;
|
||||
ot->cancel = WM_gesture_straightline_cancel;
|
||||
|
||||
/* Flags. */
|
||||
|
||||
@@ -64,6 +64,11 @@ bool editable_grease_pencil_poll(bContext *C)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool editable_grease_pencil_with_region_view3d_poll(bContext *C)
|
||||
{
|
||||
return ED_operator_region_view3d_active(C) && editable_grease_pencil_poll(C);
|
||||
}
|
||||
|
||||
bool active_grease_pencil_layer_poll(bContext *C)
|
||||
{
|
||||
const GreasePencil *grease_pencil = blender::ed::greasepencil::from_context(*C);
|
||||
|
||||
@@ -317,6 +317,7 @@ bool grease_pencil_context_poll(bContext *C);
|
||||
bool active_grease_pencil_poll(bContext *C);
|
||||
bool active_grease_pencil_material_poll(bContext *C);
|
||||
bool editable_grease_pencil_poll(bContext *C);
|
||||
bool editable_grease_pencil_with_region_view3d_poll(bContext *C);
|
||||
bool active_grease_pencil_layer_poll(bContext *C);
|
||||
bool active_grease_pencil_layer_group_poll(bContext *C);
|
||||
bool editable_grease_pencil_point_selection_poll(bContext *C);
|
||||
|
||||
@@ -2267,6 +2267,12 @@ static bool interface_panel_affects_output(DrawGroupInputsContext &ctx,
|
||||
for (const bNodeTreeInterfaceItem *item : panel.items()) {
|
||||
if (item->item_type == NODE_INTERFACE_SOCKET) {
|
||||
const auto &socket = *reinterpret_cast<const bNodeTreeInterfaceSocket *>(item);
|
||||
if (socket.flag & NODE_INTERFACE_SOCKET_HIDE_IN_MODIFIER) {
|
||||
continue;
|
||||
}
|
||||
if (!(socket.flag & NODE_INTERFACE_SOCKET_INPUT)) {
|
||||
continue;
|
||||
}
|
||||
const int input_index = ctx.nmd.node_group->interface_input_index(socket);
|
||||
if (ctx.input_usages[input_index]) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user