Fix 2d paint jitter for live brush

This commit is contained in:
Lubos Lenco
2020-06-02 14:05:32 +02:00
parent fa3baf2841
commit 0d736fcd6a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -183,8 +183,8 @@ class Inc {
var moved = (mx != lastX || my != lastY) && (inViewport || in2dView);
if (moved || Context.brushLocked) {
Context.rdirty = 2;
Context.sub = 0;
}
Context.sub = 0;
}
if (Context.ddirty <= 0 && Context.rdirty <= 0 && (Context.pdirty <= 0 || UIHeader.inst.worktab.position == SpaceRender)) {
+1 -1
View File
@@ -291,7 +291,7 @@ class RenderPathPaint {
liveLayerLocked = use;
}
public static function commandsLiveBrush() {
static function commandsLiveBrush() {
var tool = Context.tool;
if (tool != ToolBrush &&