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

@ -75,7 +75,7 @@ class QuickFur(Operator):
def execute(self, context): def execute(self, context):
fake_context = context.copy() fake_context = context.copy()
mesh_objects = [obj for obj in context.selected_objects 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: if not mesh_objects:
self.report({'ERROR'}, "Select at least one mesh object") self.report({'ERROR'}, "Select at least one mesh object")