Fix T43887: Quick Fur duplicate particle system on edit

Forbid add quick fur operator from adding fur to objects in edit mode.

Fur is not visible for them anyway and because of local undo stack used
in edit mode tweaking values of this operator does not lead to proper
operator redo.
This commit is contained in:
Sergey Sharybin 2015-03-10 17:00:23 +05:00
parent 9d72c9e7e5
commit 51a60cbaf8
Notes: blender-bot 2023-02-14 09:24:57 +01:00
Referenced by issue #43959, Texture Paint: "Jittering" when enabling radius pressure
Referenced by issue #43960, Texture paint: Lens angle Matters in Perspective View
Referenced by issue #43887, Quick Fur duplicate particle system on edit
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class QuickFur(Operator):
def execute(self, context):
fake_context = context.copy()
mesh_objects = [obj for obj in context.selected_objects
if obj.type == 'MESH']
if obj.type == 'MESH' and obj.mode == 'OBJECT']
if not mesh_objects:
self.report({'ERROR'}, "Select at least one mesh object")