소스 검색

test code for testing sandbox

Bastien Sevajol 9 년 전
부모
커밋
542ae44ab8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      intelligine/simulation/object/brain/part/transport/AntPutBrainPart.py

+ 1 - 1
intelligine/simulation/object/brain/part/transport/AntPutBrainPart.py 파일 보기

@@ -47,7 +47,7 @@ class AntPutBrainPart(TakeBrainPart):
47 47
         # TODO: Pour le moment on ne regarde pas si ce sont tous des obj identique
48 48
         count_obj_here = len(context.metas.list.get(POSITIONS, position, allow_empty=True))
49 49
         # TODO: 5 est hardcode; de plus cette cntrainte (not brain) devrait dependre de l'objet, du contexte ...
50
-        if count_obj_here <= 5 and (context.position_is_penetrable(position)):  # TODO TEST !!!
50
+        if count_obj_here <= 5 and (context.position_is_penetrable(position) or position == (0, 0, 0)):  # TODO TEST !!!
51 51
             return True
52 52
         return False
53 53