Commit 9817e41e authored by Leonardo Rochael Almeida's avatar Leonardo Rochael Almeida Committed by Julien Muchembled

Solvers: expand the simulation movement we're modifying in CopyAndPropagate

Instead of expanding one below it that might not have been modified at all.
parent c1b3879e
......@@ -73,8 +73,6 @@ class CopyAndPropagate(TargetSolver):
quantity_ratio=quantity_ratio,
value_dict=value_dict,
property_id=property_id)
# XXX: would it be safe to expand by activity ?
simulation_movement.expand('immediate')
def _solveRecursively(self, simulation_movement, is_last_movement=1,
quantity_ratio=None, value_dict=None,
......@@ -106,3 +104,5 @@ class CopyAndPropagate(TargetSolver):
if not simulation_movement.isPropertyRecorded(property_id):
simulation_movement.recordProperty(property_id)
simulation_movement.edit(**value_dict)
# XXX would it be safe to expand by activity ?
simulation_movement.expand('immediate')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment