Skip to content

Commit

Permalink
Fix validation operator
Browse files Browse the repository at this point in the history
  • Loading branch information
malter committed Jun 24, 2021
1 parent 7b5432e commit a577b09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phobos/operators/editing.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import phobos.model.motors as modelmotors
import phobos.model.controllers as controllermodel
import phobos.model.sensors as sensors
import phobos.model.models as models
from phobos.operators.generic import addObjectFromYaml
from phobos.phoboslog import log

Expand Down Expand Up @@ -3512,7 +3513,7 @@ def execute(self, context):
"""
messages = {}
root = sUtils.getRoot(context.selected_objects[0])
model, objectlist = models.deriveModelDictionary(root)
model = models.deriveModelDictionary(root)
vUtils.check_dict(model, defs.definitions['model'], messages)
vUtils.checkMessages = messages if len(list(messages.keys())) > 0 else {"NoObject": []}
for entry in messages:
Expand Down

0 comments on commit a577b09

Please sign in to comment.