Commit graph

436 commits

Author SHA1 Message Date
Laura Klünder
87d1e3e7f5 don't import anything in render.__init__ 2017-11-20 02:53:49 +01:00
Laura Klünder
94ae86d690 refactor even more data→geometry and levelrender 2017-11-20 02:38:35 +01:00
Laura Klünder
116590b88f c3nav.mapdata.cache → c3nav.mapdata.utils.cache 2017-11-20 00:39:01 +01:00
Laura Klünder
f214104187 match ramp altitudeareas even if their altitudes were swapped 2017-11-19 23:22:08 +01:00
Laura Klünder
f4b2eaf678 don't crash if there was no altitudearea match found 2017-11-19 23:02:31 +01:00
Laura Klünder
9ffdf2052a GeometryField.get_final_value() for comparing new values with old values 2017-11-19 21:40:32 +01:00
Laura Klünder
b30fbe90d0 AltitudeArea.rebuild(): better match candidates based on altitude 2017-11-19 21:08:35 +01:00
Laura Klünder
80e713c0a7 fix obstacles to altitudeareas for ramps and spiral staircases 2017-11-19 20:40:10 +01:00
Laura Klünder
80f382bc8b altitudemarker invalidly placed? log an error instad of failing 2017-11-19 15:14:29 +01:00
Laura Klünder
747b97a2aa remove old commented out code 2017-11-18 20:58:47 +01:00
Laura Klünder
fd28cb5435 dont connect level altitudes using graphs, that was unelegant 2017-11-18 20:47:51 +01:00
Laura Klünder
e74bdfe614 cache space_buffer to improve performance 2017-11-18 20:42:19 +01:00
Laura Klünder
3245837028 speed up AltitudeAreas.recalculate() even more using prepared geometries 2017-11-18 20:26:34 +01:00
Laura Klünder
7f5b614620 speedup cut_polygon_with_line calls by using list of polygons 2017-11-18 20:19:44 +01:00
Laura Klünder
f672ee107a speddup AltitudeArea.recalculate() using prepared geometries 2017-11-18 20:16:07 +01:00
Laura Klünder
8bdd3d174d show altitude marker altitude in title / list 2017-11-18 17:34:34 +01:00
Laura Klünder
abae816992 there is no reason to fill in columns 2017-11-18 16:38:22 +01:00
Laura Klünder
c1634c7520 fix obstacles near, but not touching ramps being rendered incorrectly 2017-11-18 16:08:58 +01:00
Laura Klünder
b9977676d6 fix cut trough empty space detection in cut_polygon_with_line 2017-11-18 15:52:16 +01:00
Laura Klünder
f65b15bb29 cut obstacles better to distribute them into altitude areas better 2017-11-18 14:38:25 +01:00
Laura Klünder
92749a5f16 fix get_altitudes() again 2017-11-18 13:56:25 +01:00
Laura Klünder
7575605aae refactor get_altitudes() 2017-11-18 13:53:40 +01:00
Laura Klünder
da25951555 ramp rendering 2017-11-18 13:30:20 +01:00
Laura Klünder
4e51969794 create ramp altitude areas 2017-11-18 00:07:23 +01:00
Laura Klünder
69bacc321f don't lock all mapupates during AltitudeArea.recalculate() 2017-11-17 22:01:07 +01:00
Laura Klünder
aaabc7e37c add ramp model 2017-11-17 20:31:29 +01:00
Laura Klünder
fdce9a9ab1 obstacles should not be able to “expand” an altitude area outside spaces 2017-11-17 18:37:36 +01:00
Laura Klünder
3dd41a3504 determine last_processed_update beforehand 2017-11-17 14:59:46 +01:00
Laura Klünder
80dbaf232e fix terrible error where last_processed_update is not updated in the cache 2017-11-16 20:57:10 +01:00
Laura Klünder
c890ae6bbf better logging in many places 2017-11-16 20:54:59 +01:00
Laura Klünder
c754f046ee get_changed_geometry(): operate on cleaned geometry 2017-11-16 19:55:23 +01:00
Laura Klünder
00df96cbe0 better output when processing map updates 2017-11-16 19:40:57 +01:00
Laura Klünder
0dea6561fa fix typo 2017-11-16 19:33:19 +01:00
Laura Klünder
689139a6ec fix broken import 2017-11-16 19:27:58 +01:00
Laura Klünder
8c9346a074 try to fix MapHistory updating 2017-11-16 19:24:49 +01:00
Laura Klünder
1d770e3e43 altitudeareas should not span over holes 2017-11-16 14:33:51 +01:00
Laura Klünder
6c1e17f6c9 fix multiple errors in cut_polygon_with_line 2017-11-16 04:11:01 +01:00
Laura Klünder
023f80ab6a don't crash if changed_geometries wasn't set 2017-11-16 03:12:26 +01:00
Laura Klünder
85788d33b0 hotfix to be debugged later 2017-11-16 03:09:14 +01:00
Laura Klünder
8602f4f39e stop deferring Level.render_data, this field does no exist any more 2017-11-16 03:03:18 +01:00
Laura Klünder
44dda5cd77 save changed_geometries into file instead of pickling it into the db 2017-11-16 02:47:28 +01:00
Laura Klünder
fb69bcedd7 remove LevelManager, we don't need to defer render_data any more 2017-11-16 02:45:01 +01:00
Laura Klünder
d9e443c9cc save level render data into a file instead of pickling it into the db 2017-11-16 02:26:04 +01:00
Laura Klünder
ef73932ea3 mapupdate: set cache and queue process task using transaction.on_commit 2017-11-15 23:01:43 +01:00
Laura Klünder
4ab38758eb defer MapUpdate.changed_geometries by default 2017-11-14 23:45:53 +01:00
Laura Klünder
5878381619 add door_height to editor form and serializer 2017-11-14 22:24:29 +01:00
Laura Klünder
3315fbf057 door heights 2017-11-14 21:33:55 +01:00
Laura Klünder
d023af3531 fix terrible glitches 2017-11-13 23:35:13 +01:00
Laura Klünder
f8e75584d9 more stuff better cut 2017-11-13 22:38:49 +01:00
Laura Klünder
dfdeb784aa fix orient again 2017-11-13 21:03:22 +01:00