Texture Paint with stroke method = curve, doesn't work #67216

Closed
opened 2019-07-19 11:39:40 +02:00 by johan tri handoyo · 11 comments

System Information
Operating system: Windows 7
Graphics card: Quadro FX 4800

Blender Version
Broken: (example: 2.80 Release candidate)
Worked: 2.79b

Short description of error
Make some curve in stroke method in the texture painting mode. Then click Draw Curve button without a result.

Exact steps for others to reproduce the error
Some screen shot
Capture.JPG

**System Information** Operating system: Windows 7 Graphics card: Quadro FX 4800 **Blender Version** Broken: (example: 2.80 Release candidate) Worked: 2.79b **Short description of error** Make some curve in stroke method in the texture painting mode. Then click Draw Curve button without a result. **Exact steps for others to reproduce the error** Some screen shot ![Capture.JPG](https://archive.blender.org/developer/F7617989/Capture.JPG)

Added subscriber: @JohanTriHandoyo

Added subscriber: @JohanTriHandoyo
johan tri handoyo changed title from Texture Paint stroke method curve doesn't work to Texture Paint with stroke method = curve, doesn't work 2019-07-19 11:44:06 +02:00

Added subscriber: @CMC

Added subscriber: @CMC

@JohanTriHandoyo
I can't reproduce this with RC1, see the gif animation below.
The Quadro FX 4800 has less than 2GB RAM? Maybe that is the issue. You can find the requirements here: https://www.blender.org/download/requirements/

2019-07-19_15-20-25.gif

My System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 960/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.36
Blender Version
version: 2.80 (sub 74), branch: master, commit date: 2019-07-11 13:50, hash: 06312c6d2d

@JohanTriHandoyo I can't reproduce this with RC1, see the gif animation below. The Quadro FX 4800 has less than 2GB RAM? Maybe that is the issue. You can find the requirements here: https://www.blender.org/download/requirements/ ![2019-07-19_15-20-25.gif](https://archive.blender.org/developer/F7618179/2019-07-19_15-20-25.gif) **My System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 960/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.36 **Blender Version** version: 2.80 (sub 74), branch: master, commit date: 2019-07-11 13:50, hash: `06312c6d2d`

Added subscriber: @mano-wii

Added subscriber: @mano-wii

We require a .blend file and simple steps to reproduce the problem.

We require a .blend file and simple steps to reproduce the problem.

Here's the .blend file. I also try it on my Ubuntu 18.04.2 LTS machine with GTX 1080 graphic card, create a new file, still the same result. No stroke appears on the surface. The steps are exactly like the .gif file Christina posted, except that i use ctrl-left click to create the curve. Thanks!

curve stroke method problem.blend

Here's the .blend file. I also try it on my Ubuntu 18.04.2 LTS machine with GTX 1080 graphic card, create a new file, still the same result. No stroke appears on the surface. The steps are exactly like the .gif file Christina posted, except that i use ctrl-left click to create the curve. Thanks! [curve stroke method problem.blend](https://archive.blender.org/developer/F7621312/curve_stroke_method_problem.blend)

The problem only occurs when you try to activate the operator by the property editor.
The image_paint_poll returns false because the context is not a 3Dview (and makes sense, which 3D view to choose?).

The problem only occurs when you try to activate the operator by the property editor. The `image_paint_poll` returns false because the context is not a 3Dview (and makes sense, which 3D view to choose?).

Added subscriber: @brecht

Added subscriber: @brecht

The problem could be mitigated if the operator was normally called in when clicking on the 3D view (as already works with any other Stroke Method).
Here a solution to run the operator when clicking:

diff --git a/source/blender/editors/sculpt_paint/paint_curve.c b/source/blender/editors/sculpt_paint/paint_curve.c
index d9fd194e96f..893aa20238f 100644
--- a/source/blender/editors/sculpt_paint/paint_curve.c
+++ b/source/blender/editors/sculpt_paint/paint_curve.c
@@ -752,7 +752,7 @@ static int paintcurve_cursor_invoke(bContext *C, wmOperator *UNUSED(op), const w
       break;
   }
 
-  return OPERATOR_FINISHED;
+  return OPERATOR_FINISHED | OPERATOR_PASS_THROUGH;
 }
 
 void PAINTCURVE_OT_cursor(wmOperatorType *ot)

@brecht, can you take a look?

The problem could be mitigated if the operator was normally called in when clicking on the 3D view (as already works with any other Stroke Method). Here a solution to run the operator when clicking: ``` diff --git a/source/blender/editors/sculpt_paint/paint_curve.c b/source/blender/editors/sculpt_paint/paint_curve.c index d9fd194e96f..893aa20238f 100644 --- a/source/blender/editors/sculpt_paint/paint_curve.c +++ b/source/blender/editors/sculpt_paint/paint_curve.c @@ -752,7 +752,7 @@ static int paintcurve_cursor_invoke(bContext *C, wmOperator *UNUSED(op), const w break; } - return OPERATOR_FINISHED; + return OPERATOR_FINISHED | OPERATOR_PASS_THROUGH; } void PAINTCURVE_OT_cursor(wmOperatorType *ot) ``` @brecht, can you take a look?

I don't think clicking should draw the curve, much too easy to misclick when editing the curve. Enter key can already be used for drawing.

I don't think clicking should draw the curve, much too easy to misclick when editing the curve. Enter key can already be used for drawing.

Closed as duplicate of #63331

Closed as duplicate of #63331
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#67216
No description provided.