95 Commits

Author SHA1 Message Date
David Vierra
aeac1b1883 Camera view skips chunks outside the view distance (chunks that would be offered because the minimap loaded them) 2015-01-12 01:04:29 -10:00
David Vierra
ff17731cf8 iterateChunks has a radius parameter, not diameter 2015-01-12 01:04:29 -10:00
David Vierra
494c992fda Increase camera view distance, ensure view distance changes update the scene 2015-01-12 01:04:28 -10:00
David Vierra
3d8e524186 Add benchmark for SelectionScene 2015-01-12 01:04:28 -10:00
David Vierra
52b7261837 Add a few more profiler calls 2015-01-12 01:04:27 -10:00
David Vierra
8ad5823f06 Profiler widget shows time not taken by children in a "self" column, instead of as an (other) node.
Zero div error in ProfilerWidget
2015-01-12 01:04:24 -10:00
David Vierra
dbfdd44047 Render small selections immediately 2015-01-11 01:30:32 -10:00
David Vierra
641f0b338b Don't stupidly recalculate renderType lookup table for each section 2015-01-11 01:30:14 -10:00
David Vierra
af1b889f93 Profiler widget has alternating colors 2015-01-11 01:29:11 -10:00
David Vierra
9b458c3369 Remove some dead code 2015-01-11 01:28:54 -10:00
David Vierra
50425f384f Fix error when changing shape with no selection 2015-01-11 01:27:47 -10:00
David Vierra
bc3b1861c0 ShapeWidget buttons now toggle exclusively 2015-01-11 01:27:19 -10:00
David Vierra
eab84b737d Whoops, ZeroBox is actually used 2015-01-11 01:21:02 -10:00
David Vierra
68ea8b823b BoundingBox -> mceditlib.selection 2015-01-10 12:14:28 -10:00
David Vierra
44f601a641 Select tool creates shaped selections.
Move brush shapes to mceditlib.selection
BrushShapeWidget -> mcedit2.widgets.shapewidget.ShapeWidget
New class SelectionScene renders selections as opaque white cubes
Change text of resize/deselect history commands
BoundingBox compares against None without crashing, has sensible repr again
2015-01-10 11:55:19 -10:00
David Vierra
78ae05608f VertexArrayBuffer correctly computes its element offsets instead of using the weird guesses in rendering.slices 2015-01-10 11:19:42 -10:00
David Vierra
b743217870 Clear undo block before saving, adjust comments 2015-01-09 18:14:46 -10:00
David Vierra
85cf1808e2 Add property list to player editor (xxx still needs undo, so does chunk property editor) 2015-01-09 00:27:59 -10:00
David Vierra
1cf80795af Move tool moves "things" 2015-01-09 00:27:04 -10:00
David Vierra
b4e1c43f9a Multi-command paste and move operations - Start, Move, Finish are recorded in history
...and add some type info
2015-01-09 00:05:00 -10:00
David Vierra
98ff85b544 Move undo block logic to new class MCEUndoStack, change Edit menu to use stack-provided actions 2015-01-08 22:43:10 -10:00
David Vierra
dcc326fd2b Schematic adapter fakes Biomes array at the correct size 2015-01-08 22:41:57 -10:00
David Vierra
318c1b15da Add NBTUUIDAttr class, add UUID attribute to player ref 2015-01-08 22:41:37 -10:00
David Vierra
1d6b65f7cd Hide hovers when selection tool is inactive 2015-01-08 22:41:16 -10:00
David Vierra
993d348bfe Non-NBT chunk editor (is this really necessary) 2015-01-08 15:41:41 -10:00
David Vierra
a206ab5336 Player Tool is now a Panel 2015-01-08 14:59:44 -10:00
David Vierra
a83977da99 resourcePath finds stuff relative to parent dir of mcedit2 module (src/), not current dir
allows mcedit2 script to run from any dir in source installs
2015-01-06 18:58:06 -10:00
David Vierra
e0438afbcb Get pyinstaller working again w/new install instructions 2015-01-06 18:57:12 -10:00
David Vierra
559ffd4875 Move translation folder under src/mcedit2 2015-01-06 17:02:25 -10:00
David Vierra
7cc2876c0e Remove testing junk from replace.py 2015-01-06 15:09:23 -10:00
David Vierra
069001d6b1 BlockTypePixmap shows textures again. BlockTypeSet[] prepends namePrefix again. 2015-01-06 15:09:10 -10:00
David Vierra
e0128c9921 enable/disable Edit menu commands according to undo stack state and selection state 2015-01-06 14:22:23 -10:00
David Vierra
5adf2457d2 Only emit SelectionCoordinateWidget.boxChanged when the user changes the inputs 2015-01-06 12:30:58 -10:00
David Vierra
ff8922fc5d Add getBlock, returning a BlockType, and use it in findBlockFace (wait, isn't this replaced by raycast?) 2015-01-06 12:28:34 -10:00
David Vierra
29b5fa2b28 organize editorapp.py 2015-01-06 11:25:07 -10:00
David Vierra
de969c05f1 Move currentSelection and selectionChanged to EditorSession 2015-01-06 11:20:59 -10:00
David Vierra
2074faa840 session.selectionBox -> currentSelection 2015-01-06 10:42:50 -10:00
David Vierra
767a966bba EditorSession now provides menus, so it can toggle menuAction.enabled as needed 2015-01-05 20:21:28 -10:00
David Vierra
4c5b81847e Tighten up margins in EditorTab 2015-01-05 15:43:55 -10:00
David Vierra
244f9ad926 Check margin keyword to Row/Column is not None 2015-01-05 15:41:55 -10:00
David Vierra
ea730d0cf1 Remove pyuic testing junk 2015-01-05 15:38:58 -10:00
David Vierra
757a16dd8e CONTRIBUTING.md: mcedit 1.x issues 2015-01-05 12:26:30 -10:00
David Vierra
c9b6a974f9 LICENSE.txt -> LICENSE.md 2015-01-05 00:06:27 -10:00
David Vierra
48b615af03 Colorize leaves, grass, herbs, redstone, etc. Disable cython profiling. Change offsets to size_t just in case. 2015-01-04 21:45:02 -10:00
David Vierra
7c8704969f ...and just disable it entirely for now. lots of things don't look right until the alpha is fixed. 2015-01-04 21:24:32 -10:00
David Vierra
fb85782308 check bool(GL.glGenerateMipmap) xxxx don't use it at all, generate mips w/numpy 2015-01-04 18:13:56 -10:00
David Vierra
3806d4b59f Destroy lists when removing children from rendergraph, make parent link a weakref to avoid cyclic refs/gc 2015-01-04 15:46:40 -10:00
David Vierra
bdb8233f91 cullface is an int, compare with None 2015-01-04 15:38:22 -10:00
David Vierra
238e0a134a updateStatusLabel with None when no block is found 2015-01-04 12:46:52 -10:00
David Vierra
801307e069 Store cooked models as structs instead of list of tuples - now the important loops are all white (C code) but it leaks memory 2015-01-04 12:46:40 -10:00