Quick Fur duplicate particle system on edit #43887

Closed
opened 2015-03-04 17:10:56 +01:00 by UnknownFreak · 11 comments

System Information
Windows 7
Nvidia GTX 660

Blender Version
Broken: 2.73

Short description of error

Every time you edit the values in the quick fur properties window, you will create a duplicate particle system, each time you change a value

Exact steps for others to reproduce the error

  1. If needed add a new mesh of any type
  2. Goto Edit mode
  3. Add quick fur
  4. Change settings in the property window.
  5. Check your particle systems tab

The bug only happens when you change the properties in a quick fur that is added in edit mode, otherwise it will work as intended.

Attached video shows how to reproduce the error
Particle system duplicate - video link (dropbox)
Particle_systemduplicate.mp4 - video download

**System Information** Windows 7 Nvidia GTX 660 **Blender Version** Broken: 2.73 **Short description of error** Every time you edit the values in the quick fur properties window, you will create a duplicate particle system, each time you change a value **Exact steps for others to reproduce the error** 1. If needed add a new mesh of any type 2. Goto Edit mode 3. Add quick fur 4. Change settings in the property window. 5. Check your particle systems tab The bug only happens when you change the properties in a quick fur that is added in edit mode, otherwise it will work as intended. Attached video shows how to reproduce the error [Particle system duplicate](https://dl.dropboxusercontent.com/u/66039636/Blender/Bugs/Particle%20systemduplicate.mp4) - video link (dropbox) [Particle_systemduplicate.mp4](https://archive.blender.org/developer/F147289/Particle_systemduplicate.mp4) - video download
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @UnknownFreak

Added subscriber: @UnknownFreak
Member

Added subscribers: @LukasTonne, @ideasman42, @JulianEisel

Added subscribers: @LukasTonne, @ideasman42, @JulianEisel
Member

Can confirm that. Add quick fur in Edit Mode -> change settings in redo panel -> A new particle system is added.

Not sure what triggers this, but I'd say it's the undo system. Disabling the rna prop update call doesn't work. @ideasman42, @LukasTonne any ideas?

Can confirm that. Add quick fur in Edit Mode -> change settings in redo panel -> A new particle system is added. Not sure what triggers this, but I'd say it's the undo system. Disabling the rna prop update call doesn't work. @ideasman42, @LukasTonne any ideas?
Author

Downloaded and played with the new testbuild, problem still presisted, so I decided to look up the "quicktools" file (object_quick_effects.py)
and took a look in there, tested some different things, and decided with a friend. For now, the best solution
is to add:

  if context.mode == 'EDIT_MESH':
          bpy.ops.object.mode_set(mode='OBJECT', toggle=True)

in the class QuickFur(Operator):

  def execute(self, context):
      ...
      if not mesh_objects:
          self.report({'ERROR'}, "Select at least one mesh object")
          return {'CANCELLED'}
    #Added code
      if context.mode == 'EDIT_MESH':
          bpy.ops.object.mode_set(mode='OBJECT', toggle=True)
    #Endof added code
      mat = bpy.data.materials.new("Fur Material")
      ...
      return {'FINISHED'}
 

This will force the user into object mode (where the bug cannot happen).

There is probably a better solution. But it will do for now.

Downloaded and played with the new testbuild, problem still presisted, so I decided to look up the "quicktools" file (object_quick_effects.py) and took a look in there, tested some different things, and decided with a friend. For now, the best solution is to add: ``` if context.mode == 'EDIT_MESH': bpy.ops.object.mode_set(mode='OBJECT', toggle=True) ``` in the class QuickFur(Operator): ``` def execute(self, context): ... if not mesh_objects: self.report({'ERROR'}, "Select at least one mesh object") return {'CANCELLED'} ``` #Added code ``` if context.mode == 'EDIT_MESH': bpy.ops.object.mode_set(mode='OBJECT', toggle=True) ``` #Endof added code ``` mat = bpy.data.materials.new("Fur Material") ... return {'FINISHED'} ``` This will force the user into object mode (where the bug cannot happen). There is probably a better solution. But it will do for now.

Added subscriber: @Sergey

Added subscriber: @Sergey

The issue is caused by edit mode using local undo stack, which doesn't store particle system settings. But i don't think changing object mode is the proper way to go, imo it's better to just forbid adding fur onto objects which are in edit mode: http://www.pasteall.org/57142/diff

P.S. Ic sohuld probably check object's mode is OBJECT, so there's no issues with quick fur called for objects which are in paint/sculpt modes.

The issue is caused by edit mode using local undo stack, which doesn't store particle system settings. But i don't think changing object mode is the proper way to go, imo it's better to just forbid adding fur onto objects which are in edit mode: http://www.pasteall.org/57142/diff P.S. Ic sohuld probably check object's mode is OBJECT, so there's no issues with quick fur called for objects which are in paint/sculpt modes.

Agree - best just disable this in editmode.

Agree - best just disable this in editmode.

This issue was referenced by 51a60cbaf8

This issue was referenced by 51a60cbaf86020f19de639245cb06e37d6d7c6f2

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit 51a60cbaf8.

Closed by commit 51a60cbaf8.
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#43887
No description provided.