Fix #111821: Sculpt Mode: Scene Statistics showing wrong results #111914

Closed
Pratik Borhade wants to merge 1 commits from PratikPB2123:111821-sculpt-info-stats into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

Caused by 6e20beba22
When in sculpt mode, total selected objects were not calculated. Hence,
anysel was false. To fix this, calculate total objects in sculpt mode
(optionally we can calculate total selected objects) and total visible
objects in viewport.

Caused by 6e20beba22df4b3b1455240d005c744370e06881 When in sculpt mode, total selected objects were not calculated. Hence, `anysel` was false. To fix this, calculate total objects in sculpt mode (optionally we can calculate total selected objects) and total visible objects in viewport.
Pratik Borhade added 1 commit 2023-09-04 08:15:20 +02:00
4be661e099 Fix #111821: Sculpt Mode: Scene Statistics showing wrong results
Caused by 6e20beba22
When in sculpt mode, total selected objects were not calculated. Due to this
`anysel` was false. To fix this calculate total objects in sculpt mode
(optionally we can calculate total selected objects) and total visible
objects in viewport
Pratik Borhade requested review from Pablo Vazquez 2023-09-04 08:15:31 +02:00
Pratik Borhade requested review from Harley Acheson 2023-09-04 08:15:31 +02:00
Author
Member

(optionally we can calculate total selected objects)

Instead of this, I've calculated "objects in sculpt mode". Let me know which number is expected there :)

> (optionally we can calculate total selected objects) Instead of this, I've calculated "objects in sculpt mode". Let me know which number is expected there :)
Pratik Borhade added the
Module
User Interface
label 2023-09-04 08:41:02 +02:00
Member

@PratikPB2123

This solution might have merit, but... it masks the mistake I made in 6e20beba22. In that PR I tested for 0 objects selected before dealing with sculpt mode, which always (currently) has object totals of zero.

This I why I merged in #111945 as it directly fixes my error without adding any new iterations. With yours we now have to consider whether we need object counts in Sculpt mode. Probably not?

@PratikPB2123 This solution might have merit, but... it masks the mistake I made in 6e20beba22. In that PR I tested for 0 objects selected before dealing with sculpt mode, which always (currently) has object totals of zero. This I why I merged in #111945 as it directly fixes my error without adding any new iterations. With yours we now have to consider whether we need object counts in Sculpt mode. Probably not?
Author
Member

we now have to consider whether we need object counts in Sculpt mode. Probably not?

I don't really see any use of object count in sculpt mode :)
So yes, I agree to remove them (as you've done in 66f825135a)

Apart from this, we could think of removing object count from "vertex/weight/texture paint". They only handle active object

> we now have to consider whether we need object counts in Sculpt mode. Probably not? I don't really see any use of object count in sculpt mode :) So yes, I agree to remove them (as you've done in 66f825135a6360e2b24f09d1ad3d21078bade289) Apart from this, we could think of removing object count from "vertex/weight/texture paint". They only handle `active object`
Pratik Borhade closed this pull request 2023-09-07 12:02:53 +02:00
Pratik Borhade deleted branch 111821-sculpt-info-stats 2023-09-07 12:03:03 +02:00

Pull request closed

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
2 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#111914
No description provided.