David Vierra
f4b620dbff
xxx BlockPicker changed to need textureAtlas and not editorSession
2015-03-17 18:13:35 -10:00
David Vierra
402bdb508a
Move several selection-related commands from SelectionTool's options panel to the Select menu in EditorSession
2015-03-17 18:13:12 -10:00
David Vierra
5bacc8bf4a
Ensure that the map view gets cleaned up when the WorldListWidget is closed/hidden/rejected
...
Seems a bit redundant.
2015-03-17 16:08:56 -10:00
David Vierra
864907a689
EditorTab weakly references EditorSession
2015-03-17 15:46:16 -10:00
David Vierra
1c50a305d9
Don't try to read Forge 1.6 "ID" mapping. These store Java class names and not textual block IDs. Worry about this much later, if at all.
2015-03-17 15:42:28 -10:00
David Vierra
d1fd57347d
In FML for MC 1.6, 'ordinal' is not the block/item's "meta" - I still don't know what it's for.
2015-03-17 15:37:18 -10:00
David Vierra
a6448022a2
Remove the session's undoStack from the app's undoGroup when the session is closed.
2015-03-17 15:36:58 -10:00
David Vierra
e9de29b9d6
Core ViewActions no longer reference the EditorSession, and weakly reference its EditorTab
2015-03-17 15:36:50 -10:00
David Vierra
74f4c27339
NBTEditorWidget weakly references EditorSession
2015-03-17 14:18:15 -10:00
David Vierra
9de48d2d3f
PlayersPanel weakly references EditorSession
2015-03-17 14:16:17 -10:00
David Vierra
33b166931f
Update recent files on startup
2015-03-17 14:15:45 -10:00
David Vierra
c11fa41b52
Only add actual block IDs from FML mapping (worry about items later)
...
For some reason this required adding two new ID->name mappings to BlockTypeSet
2015-03-17 13:01:40 -10:00
David Vierra
53099af2c6
EditorTool is now responsible for creating its toolbar action and providing a signal for EditorSession to connect.
...
EditorTool weakly references EditorSession.
EditorSession does not connect loader.allChunksDone to a lambda any more
2015-03-17 11:19:50 -10:00
David Vierra
27c1fadbdd
ChunkLoader weakly references its clients, so as not to keep them alive and not require them to be unregistered on destruction
2015-03-17 11:17:39 -10:00
David Vierra
cd4a8aacbf
Don't set mainWindow as parent of PlayerPanel
...
Doing so keeps the editorSession alive as a side effect.
2015-03-16 22:09:41 -10:00
David Vierra
9390d9ecfb
sessionDidChange now handles switching to a None session (no sessions open, etc)
...
Clears panels and tools toolbars and removes session dockwidgets.
2015-03-16 22:07:35 -10:00
David Vierra
53ab8b12bf
objgraphwidget: filter common primitive types out, change showBackrefs to have more useful output
2015-03-16 21:04:29 -10:00
David Vierra
dec908d20d
Block button/picker no longer needs an EditorSession, just a TextureAtlas
2015-03-16 20:02:39 -10:00
David Vierra
11a5f19f1e
Destroy WorldView's renderGraph to ensure GL resources are released
2015-03-16 18:18:34 -10:00
David Vierra
b8a3512768
WorldView.viewportMoved does pass the view as its only argument, so don't pretend it doesn't.
2015-03-16 18:18:04 -10:00
David Vierra
3482baeffd
objgraphwidget remembers its input field
...
also fix double argument in showBackrefs
2015-03-16 16:34:31 -10:00
David Vierra
6dea8642a3
weakrefprop handles setting to None
2015-03-16 15:18:33 -10:00
David Vierra
50ae15ca8a
weakrefprop can auto-assign its instance variable name
2015-03-16 15:16:36 -10:00
David Vierra
4fdda2b1cb
Recent worlds submenu is back in action
2015-03-16 14:15:30 -10:00
David Vierra
92de1874a1
destroyLists -> destroy, explicit None checks in scene/rendergraph
2015-03-16 14:14:36 -10:00
David Vierra
422f2c2892
objgraphwidget honors the width/depth for all graphs, handles aborted/failed graphs calmly
2015-03-16 14:13:47 -10:00
David Vierra
dbe57e9b76
Add a property descriptor for weakref'd members
2015-03-16 14:13:19 -10:00
David Vierra
80fe8f5584
Paste at current mouse position
2015-03-16 10:52:57 -10:00
David Vierra
50f333fee8
Add default maxsize for lfu_cache_object
2015-03-14 17:38:45 -10:00
David Vierra
bac501d420
Increase raycast distance to 2000, remove depth buffer read, add default distance for raycasts exceeding bounds (should it be 2000?)
...
I need to keep reminding myself that the depth buffer read will catch the cursor preview for brushes!
2015-03-14 17:38:29 -10:00
David Vierra
01882cbae4
Fix cursor getting stuck on edge of world bounds when looking inward from outside the bounds.
2015-03-14 17:37:22 -10:00
David Vierra
9478bdaf99
Cache recently used WorldEditorChunks in a deque. Speeds up getBlock/setBlock by at least double.
2015-03-14 14:45:53 -10:00
David Vierra
2dfe908bbd
Get time_getsetblocks working again.
...
setBlocks accepts single values for Blocks/Data
2015-03-14 14:45:04 -10:00
David Vierra
ff1a08519d
WorldEditor now uses the newly modified lru_cache_object to cache the ChunkData it gets from the world adapter.
2015-03-14 14:13:08 -10:00
David Vierra
8c0739fcb4
Modify functions in cachefunc.py for use with WorldEditor.
2015-03-14 14:08:30 -10:00
David Vierra
b059d93c4d
Quick cache thrashing test
2015-03-14 09:02:23 -10:00
David Vierra
945c41b4c4
Temporarily disable lighting
2015-03-14 08:04:46 -10:00
David Vierra
11285325b6
Remove special handling for odd-shaped edge sections of odd-shaped worlds
...
Odd-shaped worlds will not be allowed and schematics will provide full sized sections.
2015-03-14 08:04:26 -10:00
David Vierra
251d632d55
Add a dummy syncToDisk so tests on schematics can run
2015-03-14 07:58:56 -10:00
David Vierra
d92ad6ec12
Fix blocktypes in testFill()
2015-03-14 07:43:30 -10:00
David Vierra
f0b3f79a32
Add sphinx extension to use non-underscore names in built html, so GH pages doesn't exclude them.
2015-03-13 12:57:33 -10:00
David Vierra
622dd47c58
apidoc skeletons.
2015-03-13 12:07:54 -10:00
David Vierra
640eec4cc4
entitiesOnRay checks the distance from the (displayed) entity's center instead of its lower left. Increase checking distance.
2015-03-13 09:35:01 -10:00
David Vierra
7c30807da5
NBT find/replace just barely works now. Separate NBT tab out of find_replace.ui into its own ui file.
2015-03-13 09:34:26 -10:00
David Vierra
e0e83cfa91
Make selection face hover have a thick outline, and make it cut into terrain. Change selection color to be different from unknown block.
...
Remove dead code.
2015-03-13 09:34:17 -10:00
David Vierra
51d8cbf1b6
BlockTypeSet accepts namePrefixes other than "minecraft:"
2015-03-10 08:51:43 -10:00
David Vierra
f5348df6b1
Correctly preserve selected blocks across searches, don't remove custom blocks
2015-03-10 08:50:56 -10:00
David Vierra
64710644e1
Several fixes to (multi-)BlockPicker
...
ID:meta searches are possible again, and use regex for better detection
Proxy model is used for the list of selected items on the right
Selected items correctly persist when the search box is used
Selected block(s) are displayed on the bottom using a BlockTypesItemWidget
Layout tweaks
2015-03-10 05:20:09 -10:00
David Vierra
3045d940b2
Fix BlockTypePicker init arguments
2015-03-10 02:13:16 -10:00
David Vierra
0cc3bf4802
Remove now-pointless BlockTypePicker singleton
2015-03-09 04:09:31 -10:00