sculpt mode: uncheck "use deform only" doesn't work in some cases #62070

Closed
opened 2019-03-01 03:53:05 +01:00 by Massimiliano Puliero · 7 comments

System Information
Operating system: windows 7 64bit
Graphics card: gtx 1070

Blender Version
Broken: blender-2.80.0-git.e5194835de45-windows64

Short description of error
in Solid mode is not possible to sculpt with the modifiers active.
It works fine only in Eevee "LookDev" and "Rendered"

Exact steps for others to reproduce the error
In the attached Blend file you will find suzanne with subsurface modifier applied and "use deform only" uchecked, I should see the model subdivided.
please check the attached blend file.
Thank you

sculpt_deformonly.blend

**System Information** Operating system: windows 7 64bit Graphics card: gtx 1070 **Blender Version** Broken: blender-2.80.0-git.e5194835de45-windows64 **Short description of error** in Solid mode is not possible to sculpt with the modifiers active. It works fine only in Eevee "LookDev" and "Rendered" **Exact steps for others to reproduce the error** In the attached Blend file you will find suzanne with subsurface modifier applied and "use deform only" uchecked, I should see the model subdivided. please check the attached blend file. Thank you [sculpt_deformonly.blend](https://archive.blender.org/developer/F6733627/sculpt_deformonly.blend)

Added subscriber: @MassimilianoPuliero

Added subscriber: @MassimilianoPuliero

#65198 was marked as duplicate of this issue

#65198 was marked as duplicate of this issue
Sergey Sharybin was assigned by Sebastian Parborg 2019-03-02 14:36:02 +01:00
Sergey Sharybin removed their assignment 2019-03-08 15:55:10 +01:00
Clément Foucault was assigned by Sergey Sharybin 2019-03-08 15:55:10 +01:00

Added subscribers: @fclem, @Sergey

Added subscribers: @fclem, @Sergey

This seems to be related to the actual drawing, i can see all dependnecy graphs updates and tags.
In Blender 2.7 there was a special trick to see whether drawing should happen from PBVH or not: https://developer.blender.org/diffusion/B/browse/blender2.7/source/blender/blenkernel/intern/cdderivedmesh.c$241

If my observations are correct, we don't do it in draw manager.

@fclem, might having a look? ;)

This seems to be related to the actual drawing, i can see all dependnecy graphs updates and tags. In Blender 2.7 there was a special trick to see whether drawing should happen from PBVH or not: https://developer.blender.org/diffusion/B/browse/blender2.7/source/blender/blenkernel/intern/cdderivedmesh.c$241 If my observations are correct, we don't do it in draw manager. @fclem, might having a look? ;)
Clément Foucault was unassigned by Brecht Van Lommel 2019-03-26 14:10:50 +01:00
Jeroen Bakker was assigned by Brecht Van Lommel 2019-03-26 14:10:50 +01:00
Member

Seems to be evaluated correctly for eevee, but not for the workbench.

This has todo with the workbench not checking the type of pbvh.

  const bool is_sculpt_mode = is_active && (draw_ctx->object_mode & OB_MODE_SCULPT) != 0;
  /* For now just force fully shaded with eevee when supported. */
  const bool is_sculpt_mode_draw = is_sculpt_mode &&
                                   ((ob->sculpt && ob->sculpt->pbvh) &&
                                    (BKE_pbvh_type(ob->sculpt->pbvh) != PBVH_FACES));

...

if (is_sculpt_mode && is_sculpt_mode_draw == false) {
     DRW_cache_mesh_sculpt_coords_ensure(ob);
}
Seems to be evaluated correctly for eevee, but not for the workbench. This has todo with the workbench not checking the type of pbvh. ``` const bool is_sculpt_mode = is_active && (draw_ctx->object_mode & OB_MODE_SCULPT) != 0; /* For now just force fully shaded with eevee when supported. */ const bool is_sculpt_mode_draw = is_sculpt_mode && ((ob->sculpt && ob->sculpt->pbvh) && (BKE_pbvh_type(ob->sculpt->pbvh) != PBVH_FACES)); ... if (is_sculpt_mode && is_sculpt_mode_draw == false) { DRW_cache_mesh_sculpt_coords_ensure(ob); } ```
Member

Added subscriber: @BukolaLaditan

Added subscriber: @BukolaLaditan

Closed as duplicate of #64333

Closed as duplicate of #64333
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
5 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#62070
No description provided.