Decimate modifier not working in operator settings #60722
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#60722
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Windows 10 x64
GTX 950M
Blender Version
Broken:
Date: 2019-01-18
Hash:
c59370bf64
Looks like the decimate modifier doesn't work when used in operator settings. Every other modifier seems to work fine.
Exact steps for others to reproduce the error
1: Select a mesh object
2: Run script, run operator, and enable Decimate.
3: Increase Subsurf Amount and watch it change.
4: Adjust Decimate Amount (Nothing happens other than number changing on modifier).
5: Adjust Iterations under modifier settings and watch it work like it should.
Added subscriber: @AFWS
Added subscribers: @brecht, @lichtwerk
Something up front:
I guess it might be good practice to not make new modifiers on redo but instead look for existing ones and change settings on those.
I would also make sure you cap subsurf levels to a reasonable max [just had the case where the UI hang and I had to reboot because I apparently went into insane amount of subdivisions...]
That being said there was
2ca4f4f0cb
that made a change here that might be the reason...Prior to this commit both original
DecimateModifierData
facecount and evaluatedDecimateModifierData
facecount were updated, after2ca4f4f0cb
only the original is.With that happening, I am getting the modifier error (at least with the setup in your script, not sure how to reproduce otherwise):
That somehow results in undo/redo not doing a clean job and undesired things happen:
decimate
/smooth
decimate
/smooth
modifiers get added (see above comment about not adding new ones but looking for existing ones...)anyways: regarding the change in
2ca4f4f0cb
, I am drpping this here [not 100% sure this is neccesary]:P893: #60722 snippet
@brecht: confirming for now, mind checking?
You can also remove everything ,but the decimate modifier and you still get the same results and error.
This issue was referenced by
fa5ce915df
Changed status from 'Open' to: 'Resolved'