Skip cursor for fill layers
This commit is contained in:
@@ -23,7 +23,7 @@ class Gizmo {
|
||||
var isRender = UIHeader.inst.worktab.position == SpaceRender;
|
||||
var isPaint = UIHeader.inst.worktab.position == SpacePaint;
|
||||
var isObject = isRender && Context.object != null;
|
||||
var isDecal = isPaint && Context.layer.fill_layer != null && Context.layer.uvType == UVProject;
|
||||
var isDecal = isPaint && Context.layer.fill_layer != null && Context.layer.uvType == UVProject && !Context.layerIsMask;
|
||||
|
||||
var gizmo = Context.gizmo;
|
||||
var hide = Operator.shortcut(Config.keymap.stencil_hide, ShortcutDown);
|
||||
|
||||
@@ -44,7 +44,7 @@ class LineDraw {
|
||||
|
||||
var hide = Operator.shortcut(Config.keymap.stencil_hide, ShortcutDown) || iron.system.Input.getKeyboard().down("control");
|
||||
var isPaint = UIHeader.inst.worktab.position == SpacePaint;
|
||||
var isDecal = isPaint && Context.layer.fill_layer != null && Context.layer.uvType == UVProject;
|
||||
var isDecal = isPaint && Context.layer.fill_layer != null && Context.layer.uvType == UVProject && !Context.layerIsMask;
|
||||
if (!isDecal || hide) return;
|
||||
|
||||
mat = Context.layer.decalMat;
|
||||
|
||||
@@ -408,7 +408,10 @@ class RenderPathPaint {
|
||||
!decalMask) {
|
||||
return;
|
||||
}
|
||||
if (!App.uiEnabled || UIHeader.inst.worktab.position == SpaceRender) {
|
||||
|
||||
var fillLayer = Context.layer.fill_layer != null && !Context.layerIsMask;
|
||||
var fillMask = Context.layer.fill_mask != null && Context.layerIsMask;
|
||||
if (!App.uiEnabled || App.isDragging || UIHeader.inst.worktab.position == SpaceRender || fillLayer || fillMask) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user