Page MenuHome

obj.to_mesh() crashes on mesh with armature modifier, when run 2x
Closed, ResolvedPublic

Description

Hi
In the blend file below I have simple plane mesh, with armature modifier (armature is None). And simple blender operator script.
If I redo simple blender operator (by changing operator F6 property), blender will crash, on line:

obj.to_mesh(bpy.context.depsgraph, apply_modifiers, calc_undeformed=False)

If I remove the armature modifier, or set armature modifier object to skeleton, it works ok.

Details

Type
Bug

Event Timeline

I'm getting the following assert when changing the properties:
BLI_assert failed: blender/source/blender/depsgraph/intern/depsgraph_query.cc:145, DEG_get_evaluated_scene(), at 'scene_cow != __null && DEG::deg_copy_on_write_is_expanded(&scene_cow->id)'

Sebastian Parborg (zeddb) triaged this task as Confirmed, Medium priority.Feb 7 2019, 12:46 PM

I just noticed when I add 'USE_EVAL_DATA' to operator bl_options
bl_options = {"REGISTER", "UNDO","USE_EVAL_DATA"}
Then crash won't happen. I'm not sure if this bug should be marked as fixed then.

Brecht Van Lommel (brecht) raised the priority of this task from Confirmed, Medium to Confirmed, High.Mon, Apr 1, 1:44 PM
Jose Conseco (joseconseco) closed this task as Resolved.Thu, Apr 4, 7:45 PM

I just tested today build 4th of april, and this file no longer crashes. It seems bug was fixed.